Documentation ¶
Index ¶
- type Client
- func (c *Client) ContainerCreate(options ContainerOptions) (id string, err error)
- func (c *Client) ContainerKill(id string) (err error)
- func (c *Client) ContainerRemove(id string) (err error)
- func (c *Client) ContainerStart(id string) (err error)
- func (c *Client) ContainerStop(id string) (err error)
- func (c *Client) ImagePull(tag string) (err error)
- func (c *Client) NetworkCreate(name string) (id string, err error)
- func (c *Client) NetworkRemove(id string) (err error)
- type ContainerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ContainerCreate ¶
func (c *Client) ContainerCreate(options ContainerOptions) (id string, err error)
ContainerCreate creates and starts the Docker container.
func (*Client) ContainerKill ¶
ContainerKill kills the Docker container.
func (*Client) ContainerRemove ¶
ContainerRemove removes the Docker containter.
func (*Client) ContainerStart ¶
ContainerStart starts the container with the id.
func (*Client) ContainerStop ¶
ContainerStop stops the Docker containter.
func (*Client) NetworkCreate ¶
NetworkCreate creates Docker network.
func (*Client) NetworkRemove ¶
NetworkRemove removes Docker network.
Click to show internal directories.
Click to hide internal directories.