Documentation ¶
Index ¶
- Variables
- type Client
- func (c Client) ContainerCreate(config *container.Config, hostConfig *container.HostConfig, ...) (string, error)
- func (c Client) ContainerDelete(containerID string) error
- func (c Client) ContainerExec(id string, command string) error
- func (c Client) ContainerStart(id string) error
- func (c Client) GetContainerIP(id string) (string, error)
- func (c Client) ImagePull(i Image, handler func(event *PullEvent), registry *Registry) error
- func (c Client) Log(level loggy.Level, message string, fields loggy.Fields)
- func (c Client) NetworkConnect(networkID, containerID string, aliases []string) error
- func (c Client) NetworkCreate(name string, labels map[string]string) (string, error)
- type Image
- type PullEvent
- type Registry
- type Subnetter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrImageNotFound is returned when the image does not exist ErrImageNotFound = errors.New("image not found") )
View Source
var (
ErrNoAvailableSubnet = errors.New("no available subnet")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Client is the underlying docker client // todo: make this private Client *client.Client // contains filtered or unexported fields }
func (Client) ContainerCreate ¶
func (c Client) ContainerCreate(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (string, error)
func (Client) ContainerDelete ¶
ContainerDelete stops and removes a container
func (Client) ContainerStart ¶
func (Client) NetworkConnect ¶
type PullEvent ¶
type PullEvent struct { // Status is the current status of the pull Status string `json:"status"` }
PullEvent represents a docker image pull event
type Registry ¶
type Registry struct { // Name of the registry. Name string `yaml:"name" json:"name"` // Host of the registry. Host string `yaml:"host" json:"host"` // Port of the registry. Port string `yaml:"port" json:"port"` // Username to use when authenticating with the registry. Username string `yaml:"username" json:"username"` // Password to use when authenticating with the registry. Password string `yaml:"password" json:"password"` }
Registry represents a docker registry
Click to show internal directories.
Click to hide internal directories.