package api

import "github.com/rootless-containers/rootlesskit/pkg/api"

Index

Constants

const (
	// Version of the REST API, not implementation version.
	// See openapi.yaml for the definition.
	Version = "1.1.0"
)

Types

type ErrorJSON

type ErrorJSON struct {
	Message string `json:"message"`
}

ErrorJSON is returned with "application/json" content type and non-2XX status code

type Info

type Info struct {
	APIVersion    string             `json:"apiVersion"` // REST API version
	Version       string             `json:"version"`    // Implementation version
	StateDir      string             `json:"stateDir"`
	ChildPID      int                `json:"childPID"`
	NetworkDriver *NetworkDriverInfo `json:"networkDriver,omitempty"`
	PortDriver    *PortDriverInfo    `json:"portDriver,omitempty"`
}

Info is the structure returned by `GET /info`

type NetworkDriverInfo

type NetworkDriverInfo struct {
	Driver string   `json:"driver"`
	DNS    []net.IP `json:"dns,omitempty"`
}

NetworkDriverInfo in Info

type PortDriverInfo

type PortDriverInfo struct {
	Driver string   `json:"driver"`
	Protos []string `json:"protos"`
}

PortDriverInfo in Info

Source Files

api.go

Directories

PathSynopsis
pkg/api/client
pkg/api/router
Version
v0.14.0-beta.0
Published
Mar 2, 2021
Platform
darwin/amd64
Imports
1 packages
Last checked
now

Tools for package owners.