config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterVersionTags added in v1.0.0

func FilterVersionTags(appVersion string, newTags []string, repositoryTags []string) ([]string, error)

Types

type ApplicationType

type ApplicationType string
const (
	JavaLeveransepakke   ApplicationType = "JavaLeveransepakke"
	NodeJsLeveransepakke ApplicationType = "NodeJsLeveranse"
)

type BaseImageInfo

type BaseImageInfo struct {
	Repository string
	Version    string
}

type BuildInfo

type BuildInfo struct {
	Env         map[string]string
	OutputImage OutputImageInfo
	BaseImage   BaseImageInfo
}

func NewBuildInfo

func NewBuildInfo(cfg Config, deliverable Deliverable, imageInfoProvider docker.ImageInfoProvider) (*BuildInfo, error)

type BuilderSpec

type BuilderSpec struct {
	Version string
}

type Config

type Config struct {
	ApplicationType ApplicationType
	MavenGav        MavenGav
	DockerSpec      DockerSpec
	BuilderSpec     BuilderSpec
}

type ConfigReader

type ConfigReader interface {
	ReadConfig() (*Config, error)
	AddRegistryCredentials(config *Config) error
}

func NewFileConfigReader

func NewFileConfigReader(filepath string) ConfigReader

func NewInClusterConfigReader

func NewInClusterConfigReader() ConfigReader

type Deliverable

type Deliverable struct {
	Path string
}

type DockerSpec

type DockerSpec struct {
	OutputRegistry            string
	OutputRegistryCredentials string
	OutputRepository          string
	BaseImage                 string
	BaseVersion               string
	PushExtraTags             string
	//This is the external docker registry where we check versions.
	ExternalDockerRegistry string
	TagWith                string
	RetagWith              string
	TagOverwrite           bool
}

type FileConfigReader

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

func (*FileConfigReader) AddRegistryCredentials added in v1.0.1

func (m *FileConfigReader) AddRegistryCredentials(config *Config) error

func (*FileConfigReader) ReadConfig

func (m *FileConfigReader) ReadConfig() (*Config, error)

type InClusterConfigReader

type InClusterConfigReader struct {
}

func (*InClusterConfigReader) AddRegistryCredentials added in v1.0.1

func (m *InClusterConfigReader) AddRegistryCredentials(config *Config) error

func (*InClusterConfigReader) ReadConfig

func (m *InClusterConfigReader) ReadConfig() (*Config, error)

type MavenGav

type MavenGav struct {
	ArtifactId string
	GroupId    string
	Version    string
	Classifier string
}

type OutputImageInfo

type OutputImageInfo struct {
	Repository string
	TagInfo
}

type TagInfo

type TagInfo struct {
	VersionTags []string
}

func NewTagInfo

func NewTagInfo(appVersion string, auroraVersion string, extraTags string) (*TagInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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