artifact_builder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactBuilder

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

func NewArtifactBuilder

func NewArtifactBuilder(builderConfig *BuilderConfig, happyConfig config.HappyConfig) *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(serviceRegistries map[string]*config.RegistryConfig) 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, env string, dockerRepo string) *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

type ConfigData

type ConfigData struct {
	Services map[string]ServiceConfig `yaml:"services"`
}

type EcrBackend

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

func (*EcrBackend) GetECRClient

func (s *EcrBackend) GetECRClient() *ecr.ECR

func (*EcrBackend) GetPwd

func (s *EcrBackend) GetPwd(registryIds []string) (string, error)

type RegistryBackend

type RegistryBackend interface {
	GetPwd(registryIds []string) (string, error)
	GetECRClient() *ecr.ECR
}

func GetECRBackend

func GetECRBackend(config config.HappyConfig) 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"`
}

Jump to

Keyboard shortcuts

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