Documentation
¶
Index ¶
- type APIClient
- type Client
- func (c *Client) CreateContainer(opts dc.CreateContainerOptions) (*dc.Container, error)
- func (c *Client) FindContainer(name string) (*dc.Container, error)
- func (c *Client) FindImage(repoTag string) (*dc.Image, error)
- func (c *Client) PullImage(name, tag string) error
- func (c *Client) StartContainer(name, containerID string) error
- type Port
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface { FindImage(string) (*dc.Image, error) PullImage(string, string) error FindContainer(string) (*dc.Container, error) CreateContainer(dc.CreateContainerOptions) (*dc.Container, error) StartContainer(string, string) error }
APIClient provides access to docker
type Client ¶
Client provides api access to Docker
func NewDockerClient ¶
NewDockerClient returns a docker client with the default configuration
func (*Client) CreateContainer ¶
CreateContainer creates a container with the specified options
func (*Client) FindContainer ¶
FindContainer returns a container matching the specified name
func (*Client) StartContainer ¶
StartContainer starts the container with the specified ID
Click to show internal directories.
Click to hide internal directories.