Documentation ¶
Index ¶
- type APIClient
- func (client *APIClient) BaseURL() string
- func (client *APIClient) ContainerAttach(name string, stdin bool) (net.Conn, *bufio.Reader, error)
- func (client *APIClient) ContainerCreate(config types.ContainerConfig, hostConfig *types.HostConfig, ...) (*types.ContainerCreateResp, error)
- func (client *APIClient) ContainerCreateExec(name string, config *types.ExecCreateConfig) (*types.ExecCreateResp, error)
- func (client *APIClient) ContainerGet(name string) (*types.ContainerJSON, error)
- func (client *APIClient) ContainerList(all bool) ([]*types.Container, error)
- func (client *APIClient) ContainerPause(name string) error
- func (client *APIClient) ContainerRemove(name string, force bool) error
- func (client *APIClient) ContainerRename(id string, name string) error
- func (client *APIClient) ContainerStart(name, detachKeys string) error
- func (client *APIClient) ContainerStartExec(execid string, config *types.ExecStartConfig) (net.Conn, *bufio.Reader, error)
- func (client *APIClient) ContainerStop(name string, timeout string) error
- func (client *APIClient) ContainerUnpause(name string) error
- func (client *APIClient) ImageInspect(name string) (types.ImageInfo, error)
- func (client *APIClient) ImageList() ([]types.ImageInfo, error)
- func (client *APIClient) ImagePull(name, tag string) (io.ReadCloser, error)
- func (client *APIClient) ImageRemove(name string, force bool) error
- func (client *APIClient) NetworkCreate(req *types.NetworkCreateConfig) (*types.NetworkCreateResp, error)
- func (client *APIClient) SystemInfo() (*types.SystemInfo, error)
- func (client *APIClient) SystemPing() (string, error)
- func (client *APIClient) SystemVersion() (*types.SystemVersion, error)
- func (client *APIClient) VolumeCreate(config *types.VolumeCreateConfig) (*types.VolumeInfo, error)
- func (client *APIClient) VolumeRemove(name string) error
- type ContainerAPIClient
- type ImageAPIClient
- type RespError
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
APIClient is a API client that performs all operations against a pouch server
func NewAPIClient ¶
NewAPIClient initializes a new API client for the given host
func (*APIClient) ContainerAttach ¶
ContainerAttach attach a container
func (*APIClient) ContainerCreate ¶
func (client *APIClient) ContainerCreate(config types.ContainerConfig, hostConfig *types.HostConfig, containerName string) (*types.ContainerCreateResp, error)
ContainerCreate creates a new container based in the given configuration.
func (*APIClient) ContainerCreateExec ¶
func (client *APIClient) ContainerCreateExec(name string, config *types.ExecCreateConfig) (*types.ExecCreateResp, error)
ContainerCreateExec creates exec process.
func (*APIClient) ContainerGet ¶
func (client *APIClient) ContainerGet(name string) (*types.ContainerJSON, error)
ContainerGet returns the detailed information of container.
func (*APIClient) ContainerList ¶
ContainerList returns the list of containers.
func (*APIClient) ContainerPause ¶
ContainerPause pauses a container
func (*APIClient) ContainerRemove ¶
ContainerRemove removes a container.
func (*APIClient) ContainerRename ¶
ContainerRename renames a container.
func (*APIClient) ContainerStart ¶
ContainerStart starts a created container.
func (*APIClient) ContainerStartExec ¶
func (client *APIClient) ContainerStartExec(execid string, config *types.ExecStartConfig) (net.Conn, *bufio.Reader, error)
ContainerStartExec starts exec process.
func (*APIClient) ContainerStop ¶
ContainerStop stops a container.
func (*APIClient) ContainerUnpause ¶
ContainerUnpause unpauses a container
func (*APIClient) ImageInspect ¶
ImageInspect requests daemon to inspect an image.
func (*APIClient) ImagePull ¶
func (client *APIClient) ImagePull(name, tag string) (io.ReadCloser, error)
ImagePull requests daemon to pull an image from registry.
func (*APIClient) ImageRemove ¶
ImageRemove deletes an image.
func (*APIClient) NetworkCreate ¶
func (client *APIClient) NetworkCreate(req *types.NetworkCreateConfig) (*types.NetworkCreateResp, error)
NetworkCreate creates a network.
func (*APIClient) SystemInfo ¶
func (client *APIClient) SystemInfo() (*types.SystemInfo, error)
SystemInfo requests daemon for system info.
func (*APIClient) SystemPing ¶
SystemPing shows whether server is ok.
func (*APIClient) SystemVersion ¶
func (client *APIClient) SystemVersion() (*types.SystemVersion, error)
SystemVersion requests daemon for system version.
func (*APIClient) VolumeCreate ¶
func (client *APIClient) VolumeCreate(config *types.VolumeCreateConfig) (*types.VolumeInfo, error)
VolumeCreate creates a volume
func (*APIClient) VolumeRemove ¶
VolumeRemove removes a volume
type ContainerAPIClient ¶
type ContainerAPIClient interface { ContainerCreate(config types.ContainerConfig, hostConfig *types.HostConfig, containerName string) (*types.ContainerCreateResp, error) ContainerStart(name, detachKeys string) error ContainerStop(name, timeout string) error ContainerRemove(name string, force bool) error ContainerList(all bool) ([]*types.Container, error) ContainerAttach(name string, stdin bool) (net.Conn, *bufio.Reader, error) ContainerCreateExec(name string, config *types.ExecCreateConfig) (*types.ExecCreateResp, error) ContainerStartExec(execid string, config *types.ExecStartConfig) (net.Conn, *bufio.Reader, error) ContainerGet(name string) (*types.ContainerJSON, error) ContainerRename(id string, name string) error ContainerPause(name string) error }
ContainerAPIClient defines methods of Container client.
type ImageAPIClient ¶
type ImageAPIClient interface { ImageList() ([]types.ImageInfo, error) ImageInspect(name string) (types.ImageInfo, error) ImagePull(name, tag string) (io.ReadCloser, error) ImageRemove(name string, force bool) error }
ImageAPIClient defines methods of Image client.