config

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: LGPL-3.0 Imports: 9 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationSpec added in v1.3.0

type ApplicationSpec struct {
	MavenGav      MavenGav
	BaseImageSpec DockerBaseImageSpec
}

type ApplicationType

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

type BuilderSpec

type BuilderSpec struct {
	Version string
}

type Classifier added in v1.3.0

type Classifier string
const (
	Webleveransepakke Classifier = "Webleveransepakke"
	Leveransepakke    Classifier = "Leveransepakke"
)

type Config

type Config struct {
	ApplicationType ApplicationType
	ApplicationSpec ApplicationSpec
	DockerSpec      DockerSpec
	BuilderSpec     BuilderSpec
	BinaryBuild     bool
}

type ConfigReader

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

func NewFileConfigReader

func NewFileConfigReader(filepath string) ConfigReader

func NewInClusterConfigReader

func NewInClusterConfigReader() ConfigReader

type DockerBaseImageSpec added in v1.2.0

type DockerBaseImageSpec struct {
	BaseImage   string
	BaseVersion string
}

type DockerSpec

type DockerSpec struct {
	OutputRegistry   string
	OutputRepository string
	PushExtraTags    PushExtraTags
	//This is the external docker registry where we check versions.
	ExternalDockerRegistry string
	//The tag to push to. This is only used for ImageStreamTags (as for now) and RETAG functionality
	TagWith      string
	RetagWith    string
	TagOverwrite bool
}

func (DockerSpec) GetExternalRegistryWithoutProtocol added in v1.2.0

func (m DockerSpec) GetExternalRegistryWithoutProtocol() string

type FileConfigReader

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

func (*FileConfigReader) ReadConfig

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

type InClusterConfigReader

type InClusterConfigReader struct {
}

func (*InClusterConfigReader) ReadConfig

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

type MavenGav

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

func (*MavenGav) IsSnapshot added in v1.3.0

func (m *MavenGav) IsSnapshot() bool

func (*MavenGav) Name added in v1.3.0

func (m *MavenGav) Name() string

type PackageType added in v1.3.0

type PackageType string
const (
	ZipPackaging PackageType = "zip"
	TgzPackaging PackageType = "tgz"
)

type PushExtraTags added in v1.2.0

type PushExtraTags struct {
	Latest bool
	Major  bool
	Minor  bool
	Patch  bool
}

func ParseExtraTags added in v1.2.0

func ParseExtraTags(i string) PushExtraTags

func (*PushExtraTags) ToStringValue added in v1.2.0

func (m *PushExtraTags) ToStringValue() string

Generates the tags given the appversion and extra tag configuration. Don't do any filtering

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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