Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIImagesSlice ¶
type APIImagesSlice []docker.APIImages
APIImagesSlice is a type that wraps []docker.APIImages so that it can be sorted using the "sort" package Interface.
func (APIImagesSlice) Len ¶
func (slice APIImagesSlice) Len() int
func (APIImagesSlice) Less ¶
func (slice APIImagesSlice) Less(i, j int) bool
func (APIImagesSlice) Swap ¶
func (slice APIImagesSlice) Swap(i, j int)
type DockerClient ¶
type DockerClient interface { LatestImageTaggedWithUUID(uuid string) (string, error) RemoveImage(name string) error LatestRepoTaggedWithUUID(uuid string) (string, error) TagImage(name string, opts docker.TagImageOptions) error PushImage(opts docker.PushImageOptions, auth docker.AuthConfiguration) error BuildImage(opts docker.BuildImageOptions) error }
DockerClient is a wrapper for the go docker library.
func NewDockerClient ¶
func NewDockerClient(logger *logrus.Logger, shouldBeReal bool) (DockerClient, error)
NewDockerClient returns a new DockerClient (wrapper for a conneciton with a docker daemon), properly initialized. If you want a nullDockerClient for testing, pass in nil as your logger and false for shouldBeReal.
Click to show internal directories.
Click to hide internal directories.