Documentation ¶
Index ¶
- func NewDockerClient(socket, certPath string) (*docker.Client, error)
- func NewDockerClientFromEnv() (*docker.Client, error)
- type Client
- func (c *Client) AttachToContainer(ctx context.Context, opts docker.AttachToContainerOptions) error
- func (c *Client) CreateContainer(ctx context.Context, opts docker.CreateContainerOptions) (*docker.Container, error)
- func (c *Client) PullImage(ctx context.Context, opts docker.PullImageOptions) error
- func (c *Client) RemoveContainer(ctx context.Context, opts docker.RemoveContainerOptions) error
- func (c *Client) StartContainer(ctx context.Context, id string, config *docker.HostConfig) error
- func (c *Client) StopContainer(ctx context.Context, id string, timeout uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDockerClient ¶
NewDockerClient returns a new docker.Client using the given socket and certificate path.
func NewDockerClientFromEnv ¶
func NewDockerClientFromEnv() (*docker.Client, error)
NewDockerClientFromEnv returns a new docker client configured by the DOCKER_* environment variables.
Types ¶
type Client ¶
type Client struct { *docker.Client // Auth is the docker.AuthConfiguration that will be used for pulling // images. Auth *docker.AuthConfigurations }
Client wraps a docker.Client to authenticate pulls.
func NewClientFromEnv ¶
NewClientFromEnv returns a new Client instance configured by the DOCKER_* environment variables.
func (*Client) AttachToContainer ¶
func (*Client) CreateContainer ¶
func (*Client) RemoveContainer ¶
func (*Client) StartContainer ¶
Click to show internal directories.
Click to hide internal directories.