Documentation ¶
Index ¶
- func InvokeDockerCompose(config BuilderConfig, command string) ([]byte, error)
- type ArtifactBuilder
- func (s *ArtifactBuilder) Build() error
- func (s *ArtifactBuilder) CheckImageExists(serviceRegistries map[string]*config.RegistryConfig, tag string) (bool, error)
- func (s *ArtifactBuilder) Push(serviceRegistries map[string]*config.RegistryConfig, ...) error
- func (s *ArtifactBuilder) RegistryLogin(ctx context.Context) error
- func (s *ArtifactBuilder) RetagImages(serviceRegistries map[string]*config.RegistryConfig, ...) error
- type BuilderConfig
- type ConfigData
- type RegistryBackend
- type ServiceBuild
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeDockerCompose ¶ added in v0.4.0
func InvokeDockerCompose(config BuilderConfig, command string) ([]byte, error)
'docker-compose' was incorporated into 'docker' itself.
Types ¶
type ArtifactBuilder ¶
type ArtifactBuilder struct {
// contains filtered or unexported fields
}
func NewArtifactBuilder ¶
func NewArtifactBuilder(builderConfig *BuilderConfig, backend *backend.Backend) *ArtifactBuilder
func (*ArtifactBuilder) Build ¶
func (s *ArtifactBuilder) Build() error
func (*ArtifactBuilder) CheckImageExists ¶ added in v0.3.0
func (s *ArtifactBuilder) CheckImageExists(serviceRegistries map[string]*config.RegistryConfig, tag string) (bool, error)
func (*ArtifactBuilder) Push ¶
func (s *ArtifactBuilder) Push(serviceRegistries map[string]*config.RegistryConfig, servicesImage map[string]string, tags []string) error
func (*ArtifactBuilder) RegistryLogin ¶
func (s *ArtifactBuilder) RegistryLogin(ctx context.Context) error
func (*ArtifactBuilder) RetagImages ¶
func (s *ArtifactBuilder) RetagImages(serviceRegistries map[string]*config.RegistryConfig, servicesImage map[string]string, sourceTag string, destTags []string, images []string) error
type BuilderConfig ¶
type BuilderConfig struct {
// contains filtered or unexported fields
}
func NewBuilderConfig ¶
func NewBuilderConfig(bootstrap *config.Bootstrap, happyConfig *config.HappyConfig) *BuilderConfig
func (*BuilderConfig) GetBuildEnv ¶
func (s *BuilderConfig) GetBuildEnv() []string
func (*BuilderConfig) GetBuildServicesImage ¶
func (s *BuilderConfig) GetBuildServicesImage() (map[string]string, error)
func (*BuilderConfig) GetContainers ¶
func (s *BuilderConfig) GetContainers() ([]string, error)
type ConfigData ¶
type ConfigData struct {
Services map[string]ServiceConfig `yaml:"services"`
}
type RegistryBackend ¶
type ServiceBuild ¶
type ServiceBuild struct {
Dockerfile string `yaml:"dockerfile"`
}
type ServiceConfig ¶
type ServiceConfig struct { Image string `yaml:"image"` Build *ServiceBuild `yaml:"build"` Network map[string]interface{} `yaml:"networks"` }
Click to show internal directories.
Click to hide internal directories.