Documentation ¶
Overview ¶
Package dockergoal is a library to reach a set of container goals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGraph ¶
func ApplyGraph(docker *dockerclient.DockerClient, containers []*Container) error
func ContainerCheckRunningImage ¶
ContainerCheckRunningImage will trigger checking of the running image ID with the goal image ID.
func ContainerRemoveExisting ¶
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
A Container defines a "desired" container.
func NewContainer ¶
func NewContainer(options ...ContainerOption) (*Container, error)
func (*Container) Apply ¶
func (c *Container) Apply(docker *dockerclient.DockerClient) error
type ContainerOption ¶
func ContainerConfig ¶
func ContainerConfig(config *dockerclient.ContainerConfig) ContainerOption
func ContainerHostConfig ¶
func ContainerHostConfig(config *dockerclient.HostConfig) ContainerOption
func ContainerName ¶
func ContainerName(name string) ContainerOption
Click to show internal directories.
Click to hide internal directories.