docker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_WAIT = 30000
	INTERVAL = 100
)
View Source
const (
	LABEL = "label"
	HASH  = "io.rancher.os.hash"
	ID    = "io.rancher.os.id"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(endpoint string) (*dockerClient.Client, error)

func NewDefaultClient

func NewDefaultClient() (*dockerClient.Client, error)

func NewSystemClient

func NewSystemClient() (*dockerClient.Client, error)

func StartAndWait

func StartAndWait(dockerHost string, containerCfg *config.ContainerConfig) error

Types

type ByCreated

type ByCreated []dockerClient.APIContainers

func (ByCreated) Len

func (c ByCreated) Len() int

func (ByCreated) Less

func (c ByCreated) Less(i, j int) bool

func (ByCreated) Swap

func (c ByCreated) Swap(i, j int)

type Container

type Container struct {
	Err  error
	Name string

	Config     *runconfig.Config
	HostConfig *runconfig.HostConfig

	Container    *dockerClient.Container
	ContainerCfg *config.ContainerConfig
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(dockerHost string, containerCfg *config.ContainerConfig) *Container

func (*Container) Create added in v0.2.0

func (c *Container) Create() *Container

func (*Container) Delete

func (c *Container) Delete() *Container

func (*Container) Exists

func (c *Container) Exists() bool

func (*Container) Lookup

func (c *Container) Lookup() *Container

func (*Container) Parse

func (c *Container) Parse() *Container

func (*Container) Reset

func (c *Container) Reset() *Container

func (*Container) Stage

func (c *Container) Stage() *Container

func (*Container) Start

func (c *Container) Start() *Container

func (*Container) StartAndWait

func (c *Container) StartAndWait() *Container

Jump to

Keyboard shortcuts

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