Documentation ¶
Index ¶
- func ClientOK(endpoint string, test func() bool) error
- func IsSystemContainer(serviceConfig *composeConfig.ServiceConfig) bool
- func NewClient(endpoint string) (dockerClient.APIClient, error)
- func NewClientFactory(opts composeClient.Options) (project.ClientFactory, error)
- func NewDefaultClient() (dockerClient.APIClient, error)
- func NewSystemClient() (dockerClient.APIClient, error)
- type ClientFactory
- type ConfigAuthLookup
- type ConfigEnvironment
- type Service
- type ServiceFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (c *ConfigAuthLookup) Lookup(repoInfo *registry.RepositoryInfo) types.AuthConfig
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
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 (*Service) DependentServices ¶ added in v0.4.0
func (s *Service) DependentServices() []project.ServiceRelationship
type ServiceFactory ¶ added in v0.4.0
func (*ServiceFactory) Create ¶ added in v0.4.0
func (s *ServiceFactory) Create(project *project.Project, name string, serviceConfig *composeConfig.ServiceConfig) (project.Service, error)
Click to show internal directories.
Click to hide internal directories.