Documentation ¶
Index ¶
- func Configure(endpoint, certPath string)
- func Save()
- type CannotXContainerError
- type Client
- func (c *Client) Changes(id string) []api.Change
- func (c *Client) Commit(id, repository, tag, message, author string) ImageMetadata
- func (c *Client) Create(name string, config *api.Config, host *api.HostConfig) ContainerMetadata
- func (c *Client) History(id string) []api.ImageHistory
- func (c *Client) InspectContainer(id string) ContainerMetadata
- func (c *Client) InspectImage(id string) ImageMetadata
- func (c *Client) Kill(id string, wait uint) ContainerMetadata
- func (c *Client) ListImages() []api.APIImages
- func (c *Client) LogStream(opts LogsOptions) (err error)
- func (c *Client) Logs(id string, line int, timeout time.Duration) (stdout []string, stderr []string, err error)
- func (c *Client) Pull(image string) ImageMetadata
- func (c *Client) Rename(id, name string) error
- func (c *Client) Restart(id string, wait uint) ContainerMetadata
- func (c *Client) Rm(id string) error
- func (c *Client) Rmi(id string) error
- func (c *Client) Start(id string) ContainerMetadata
- func (c *Client) Stats(id string, count int) (result []*api.Stats, err error)
- func (c *Client) Stop(id string) ContainerMetadata
- func (c *Client) Tag(id, repository, tag string) error
- func (c *Client) Top(id, args string) api.TopResult
- type ContainerMetadata
- type DockerTimeoutError
- type ImageMetadata
- type LogsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CannotXContainerError ¶
type CannotXContainerError struct {
// contains filtered or unexported fields
}
CannotXContainerError occers wher the request went wrong
func (CannotXContainerError) Error ¶
func (err CannotXContainerError) Error() string
func (CannotXContainerError) ErrorName ¶
func (err CannotXContainerError) ErrorName() string
ErrorName returns the error name
type Client ¶
type Client struct { *api.Client Conf *models.DockerClient }
Client represents wrapped api.Client
func (*Client) Commit ¶
func (c *Client) Commit(id, repository, tag, message, author string) ImageMetadata
Commit commit docker containers more safely
func (*Client) Create ¶
func (c *Client) Create(name string, config *api.Config, host *api.HostConfig) ContainerMetadata
Create creates docker containers more safely
func (*Client) History ¶
func (c *Client) History(id string) []api.ImageHistory
History returns its history
func (*Client) InspectContainer ¶
func (c *Client) InspectContainer(id string) ContainerMetadata
InspectContainer inspects the docker container
func (*Client) InspectImage ¶
func (c *Client) InspectImage(id string) ImageMetadata
InspectImage inspects the docker image
func (*Client) Kill ¶
func (c *Client) Kill(id string, wait uint) ContainerMetadata
Kill kills docker containers more safely
func (*Client) ListImages ¶
ListImages list docker images
func (*Client) LogStream ¶
func (c *Client) LogStream(opts LogsOptions) (err error)
LogStream returns containers logs as streams
func (*Client) Logs ¶
func (c *Client) Logs(id string, line int, timeout time.Duration) (stdout []string, stderr []string, err error)
Logs returns containers logs
func (*Client) Pull ¶
func (c *Client) Pull(image string) ImageMetadata
Pull pulls docker images more safely
func (*Client) Restart ¶
func (c *Client) Restart(id string, wait uint) ContainerMetadata
Restart restarts docker containers more safely
func (*Client) Start ¶
func (c *Client) Start(id string) ContainerMetadata
Start starts docker containers more safely
func (*Client) Stop ¶
func (c *Client) Stop(id string) ContainerMetadata
Stop stops docker containers more safely
type ContainerMetadata ¶
ContainerMetadata represents docker response
type DockerTimeoutError ¶
type DockerTimeoutError struct {
// contains filtered or unexported fields
}
DockerTimeoutError occers when the request was timeout
func (*DockerTimeoutError) Error ¶
func (err *DockerTimeoutError) Error() string
func (*DockerTimeoutError) ErrorName ¶
func (err *DockerTimeoutError) ErrorName() string
ErrorName returns the error name
type ImageMetadata ¶
ImageMetadata represents docker response