docker

package
v0.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2015 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_WAIT = 30000
	INTERVAL = 100
)

Variables

This section is empty.

Functions

func LoadServiceResource added in v0.3.0

func LoadServiceResource(name string, network bool, cfg *config.Config) ([]byte, error)

func NewClient

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

func NewDefaultClient

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

func NewSystemClient

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

func RunServices added in v0.3.0

func RunServices(name string, cfg *config.Config, configs map[string]*project.ServiceConfig) 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 NewContainerFromService added in v0.3.0

func NewContainerFromService(dockerHost string, name string, service *project.ServiceConfig) *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

type ContainerFactory added in v0.3.0

type ContainerFactory struct {
	// contains filtered or unexported fields
}

func NewContainerFactory added in v0.3.0

func NewContainerFactory(cfg *config.Config) *ContainerFactory

func (*ContainerFactory) Create added in v0.3.0

func (c *ContainerFactory) Create(project *project.Project, name string, serviceConfig *project.ServiceConfig) (project.Service, error)

Jump to

Keyboard shortcuts

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