Documentation ¶
Overview ¶
Package container provides functionality to interact with containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOptions ¶
type Client ¶
type Client interface { Build(imageName string, contextDir string, options BuildOptions) error Pull(imageName string, options PullOptions) error Create(imageName string, options CreateOptions) (string, error) Start(containerID string, options StartOptions) error Logs(containerID string, options LogsOptions) error Wait(containerID string, options WaitOptions) error Kill(containerID string, options KillOptions) error Remove(containerID string, options RemoveOptions) error }
func NewDockerClient ¶
func NewDockerClient(dockerClient *docker.Client) Client
type CreateOptions ¶
type KillOptions ¶
type KillOptions struct{}
type PullOptions ¶
type RemoveOptions ¶
type RemoveOptions struct{}
type StartOptions ¶
type StartOptions struct {
Commands []string
}
type WaitOptions ¶
type WaitOptions struct{}
Click to show internal directories.
Click to hide internal directories.