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 ¶
func IsSystemContainer(serviceConfig *composeConfig.ServiceConfig) bool
func NewClient ¶
func NewClient(endpoint string) (dockerClient.APIClient, error)
func NewClientFactory ¶
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 ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
func (*ClientFactory) Create ¶
func (c *ClientFactory) Create(service project.Service) dockerclient.APIClient
type ConfigAuthLookup ¶
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 ¶
func NewConfigAuthLookup(cfg *config.CloudConfig) *ConfigAuthLookup
func (*ConfigAuthLookup) All ¶
func (c *ConfigAuthLookup) All() map[string]types.AuthConfig
func (*ConfigAuthLookup) Lookup ¶
func (c *ConfigAuthLookup) Lookup(repoInfo *registry.RepositoryInfo) types.AuthConfig
func (*ConfigAuthLookup) SetConfig ¶
func (c *ConfigAuthLookup) SetConfig(cfg *config.CloudConfig)
func (*ConfigAuthLookup) SetContext ¶
func (c *ConfigAuthLookup) SetContext(context *docker.Context)
type ConfigEnvironment ¶
type ConfigEnvironment struct {
// contains filtered or unexported fields
}
func NewConfigEnvironment ¶
func NewConfigEnvironment(cfg *config.CloudConfig) *ConfigEnvironment
func (*ConfigEnvironment) Lookup ¶
func (c *ConfigEnvironment) Lookup(key, serviceName string, serviceConfig *composeConfig.ServiceConfig) []string
func (*ConfigEnvironment) SetConfig ¶
func (c *ConfigEnvironment) SetConfig(cfg *config.CloudConfig)
type Service ¶
func NewService ¶
func NewService(factory *ServiceFactory, name string, serviceConfig *composeConfig.ServiceConfig, context *docker.Context, project *project.Project) *Service
func (*Service) Create ¶
func (*Service) DependentServices ¶
func (s *Service) DependentServices() []project.ServiceRelationship
type ServiceFactory ¶
func (*ServiceFactory) Create ¶
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.