artifact_builder

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 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.HappyConfigIface) *ArtifactBuilder

func (*ArtifactBuilder) Build

func (s *ArtifactBuilder) Build() 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, images []string) 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(composeFile string, env string) *BuilderConfig

func NewDefaultBuilderConfig

func NewDefaultBuilderConfig() *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.HappyConfigIface) 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