docker

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: Apache-2.0 Imports: 17 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 *composeConfig.ServiceConfig) bool

func NewClient

func NewClient(endpoint string) (dockerClient.APIClient, error)

func NewClientFactory added in v0.4.0

func NewClientFactory(opts composeClient.Options) (project.ClientFactory, error)

func NewDefaultClient

func NewDefaultClient() (dockerClient.APIClient, error)

func NewSystemClient

func NewSystemClient() (dockerClient.APIClient, 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.APIClient

type ConfigAuthLookup added in v0.5.0

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

ConfigAuthLookup will lookup registry auth info from cloud config if a context is set, it will also lookup auth info from the Docker config file

func NewConfigAuthLookup added in v0.5.0

func NewConfigAuthLookup(cfg *config.CloudConfig) *ConfigAuthLookup

func (*ConfigAuthLookup) All added in v0.5.0

func (c *ConfigAuthLookup) All() map[string]types.AuthConfig

func (*ConfigAuthLookup) Lookup added in v0.5.0

func (*ConfigAuthLookup) SetConfig added in v0.5.0

func (c *ConfigAuthLookup) SetConfig(cfg *config.CloudConfig)

func (*ConfigAuthLookup) SetContext added in v0.5.0

func (c *ConfigAuthLookup) SetContext(context *docker.Context)

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 *composeConfig.ServiceConfig) []string

func (*ConfigEnvironment) SetConfig added in v0.4.4

func (c *ConfigEnvironment) SetConfig(cfg *config.CloudConfig)

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 *composeConfig.ServiceConfig, context *docker.Context, project *project.Project) *Service

func (*Service) Create added in v0.4.0

func (s *Service) Create(ctx context.Context, options options.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(ctx context.Context, options options.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 *composeConfig.ServiceConfig) (project.Service, error)

Jump to

Keyboard shortcuts

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