Documentation ¶
Index ¶
- Variables
- type ClientConfig
- type DaemonClient
- func (d *DaemonClient) CNIAdd(input *skel.CmdArgs) (types.Result, error)
- func (d *DaemonClient) CNIDel(input *skel.CmdArgs) error
- func (d *DaemonClient) ContainerDown(payload models.CNIDelPayload) error
- func (d *DaemonClient) ContainerUp(payload models.CNIAddPayload) (types.Result, error)
- func (d *DaemonClient) GetContainer(containerID string) (models.Container, error)
- func (d *DaemonClient) ListContainers() ([]models.Container, error)
- func (d *DaemonClient) ListNetworkContainers(networkID string) ([]models.Container, error)
- type JSONClient
Constants ¶
This section is empty.
Variables ¶
View Source
var RecordNotFoundError error = errors.New("record not found")
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type DaemonClient ¶
type DaemonClient struct {
JSONClient JSONClient
}
func (*DaemonClient) ContainerDown ¶
func (d *DaemonClient) ContainerDown(payload models.CNIDelPayload) error
func (*DaemonClient) ContainerUp ¶
func (d *DaemonClient) ContainerUp(payload models.CNIAddPayload) (types.Result, error)
func (*DaemonClient) GetContainer ¶
func (d *DaemonClient) GetContainer(containerID string) (models.Container, error)
func (*DaemonClient) ListContainers ¶
func (d *DaemonClient) ListContainers() ([]models.Container, error)
func (*DaemonClient) ListNetworkContainers ¶
func (d *DaemonClient) ListNetworkContainers(networkID string) ([]models.Container, error)
type JSONClient ¶
type JSONClient struct { BaseURL string Marshaler marshal.Marshaler Unmarshaler marshal.Unmarshaler HttpClient httpClient }
func (*JSONClient) BuildAndDo ¶
func (d *JSONClient) BuildAndDo(config ClientConfig) error
Click to show internal directories.
Click to hide internal directories.