docker

package
v0.4.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientOK added in v0.4.0

func ClientOK(endpoint string, test func() bool) error

func IsSystemContainer added in v0.4.0

func IsSystemContainer(serviceConfig *project.ServiceConfig) bool

func NewClient

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

func NewClientFactory added in v0.4.0

func NewClientFactory(opts docker.ClientOpts) (docker.ClientFactory, error)

func NewDefaultClient

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

func NewSystemClient

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

Types

type ClientFactory added in v0.4.0

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

func (*ClientFactory) Create added in v0.4.0

func (c *ClientFactory) Create(service project.Service) *dockerclient.Client

type ConfigEnvironment added in v0.4.0

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

func NewConfigEnvironment added in v0.4.0

func NewConfigEnvironment(cfg *config.CloudConfig) *ConfigEnvironment

func (*ConfigEnvironment) Lookup added in v0.4.0

func (c *ConfigEnvironment) Lookup(key, serviceName string, serviceConfig *project.ServiceConfig) []string

type Service added in v0.4.0

type Service struct {
	*docker.Service
	// contains filtered or unexported fields
}

func NewService added in v0.4.0

func NewService(factory *ServiceFactory, name string, serviceConfig *project.ServiceConfig, context *docker.Context, project *project.Project) *Service

func (*Service) Create added in v0.4.0

func (s *Service) Create() error

func (*Service) DependentServices added in v0.4.0

func (s *Service) DependentServices() []project.ServiceRelationship

func (*Service) Up added in v0.4.0

func (s *Service) Up() error

type ServiceFactory added in v0.4.0

type ServiceFactory struct {
	Context *docker.Context
	Deps    map[string][]string
}

func (*ServiceFactory) Create added in v0.4.0

func (s *ServiceFactory) 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