dclient

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2014 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL