Documentation ¶
Index ¶
- Variables
- 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) ContainerList() ([]*types.Container, error)
- func (client *APIClient) ContainerStart(name, detachKeys string) error
- func (client *APIClient) ContainerStop(name string) error
- func (client *APIClient) ImageList() ([]types.Image, error)
- func (client *APIClient) ImagePull(name, tag string) (io.ReadCloser, 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(req *types.VolumeCreateRequest) (*types.VolumeInfo, error)
- func (client *APIClient) VolumeRemove(name string) error
- type RespError
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHTTPNotfound represents the 404 error of a http request. ErrHTTPNotfound = RespError{codeHTTPNotfound, "404: not found"} )
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) ContainerList ¶
ContainerList returns the list of containers.
func (*APIClient) ContainerStart ¶
ContainerStart starts a created container.
func (*APIClient) ContainerStop ¶
ContainerStop stops a container
func (*APIClient) ImagePull ¶
func (client *APIClient) ImagePull(name, tag string) (io.ReadCloser, error)
ImagePull requests daemon to pull an image from registry.
func (*APIClient) SystemInfo ¶
func (client *APIClient) SystemInfo() (*types.SystemInfo, error)
SystemInfo requests daemon for system info.
func (*APIClient) SystemPing ¶
SystemPing shows weather 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(req *types.VolumeCreateRequest) (*types.VolumeInfo, error)
VolumeCreate creates a volume
func (*APIClient) VolumeRemove ¶
VolumeRemove removes a volume
Click to show internal directories.
Click to hide internal directories.