Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, cfg RunConfig, name string) (contID string, err error)
- func (c *Client) Login(ctx context.Context, server, username, password string) error
- func (c *Client) Logs(ctx context.Context, contID string, follow bool) (stdout, stderr []byte, err error)
- func (c *Client) Pull(ctx context.Context, imageRef string) error
- func (c *Client) Run(ctx context.Context, cfg RunConfig, name string) (contID string, err error)
- func (c *Client) RunExisting(ctx context.Context, cfg RunConfig, containerID string) (err error)
- type LogsOutput
- type RunConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Logs ¶
func (c *Client) Logs(ctx context.Context, contID string, follow bool) (stdout, stderr []byte, err error)
Logs gets the logs of a container.
type LogsOutput ¶
type RunConfig ¶
type RunConfig struct { ContainerConfig *container.Config HostConfig *container.HostConfig NetConfig *network.NetworkingConfig ContainerStartOptions types.ContainerStartOptions }
Click to show internal directories.
Click to hide internal directories.