dockergoal

package
v0.0.0-...-b6647cf Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

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

func ContainerCheckRunningImage(c *Container) error

ContainerCheckRunningImage will trigger checking of the running image ID with the goal image ID.

func ContainerRemoveExisting

func ContainerRemoveExisting(c *Container) error

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

type ContainerOption func(c *Container) error

func ContainerConfig

func ContainerConfig(config *dockerclient.ContainerConfig) ContainerOption

func ContainerHostConfig

func ContainerHostConfig(config *dockerclient.HostConfig) ContainerOption

func ContainerName

func ContainerName(name string) ContainerOption

Jump to

Keyboard shortcuts

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