Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitContainerOptions ¶
type CommitContainerOptions struct { ContainerID string Repository string Command []string Env []string }
CommitContainerOptions are options passed in to the CommitContainer method
type Docker ¶
type Docker interface { IsImageInLocalRegistry(imageName string) (bool, error) RemoveContainer(id string) error GetDefaultScriptsUrl(image string) (string, error) RunContainer(opts RunContainerOptions) error GetImageId(image string) (string, error) CommitContainer(opts CommitContainerOptions) (string, error) RemoveImage(name string) error }
Docker is the interface between STI and the Docker client It contains higher level operations called from the STI build or usage commands
type DockerClient ¶
type DockerClient interface { RemoveImage(name string) error InspectImage(name string) (*docker.Image, error) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error) AttachToContainer(opts docker.AttachToContainerOptions) error StartContainer(id string, hostConfig *docker.HostConfig) error WaitContainer(id string) (int, error) RemoveContainer(opts docker.RemoveContainerOptions) error CommitContainer(opts docker.CommitContainerOptions) (*docker.Image, error) CopyFromContainer(opts docker.CopyFromContainerOptions) error }
DockerClient contains all methods called on the go Docker client.
Click to show internal directories.
Click to hide internal directories.