Documentation ¶
Index ¶
- Constants
- type ApplicationSpec
- type ApplicationType
- type BinaryBuildType
- type BuilderSpec
- type Classifier
- type CmdConfigReader
- type Config
- type DockerBaseImageSpec
- type DockerSpec
- type FileConfigReader
- type InClusterConfigReader
- type MavenGav
- type NexusAccess
- type PackageType
- type PushExtraTags
- type Reader
Constants ¶
const ( // JavaLeveransepakke ApplicationType JavaLeveransepakke ApplicationType = "JavaLeveransepakke" // NodeJsLeveransepakke ApplicationType NodeJsLeveransepakke ApplicationType = "NodeJsLeveranse" // DoozerLeveranse ApplicationType DoozerLeveranse ApplicationType = "DoozerLeveranse" // NodeJs string NodeJs string = "NODEJS" // Doozer string Doozer string = "DOOZER" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationSpec ¶
type ApplicationSpec struct { MavenGav MavenGav BaseImageSpec DockerBaseImageSpec }
ApplicationSpec config
type BinaryBuildType ¶
type BinaryBuildType string
BinaryBuildType type string
const ( // Snapshot BinaryBuildType Snapshot BinaryBuildType = "Snapshot" )
type Classifier ¶
type Classifier string
Classifier string
const ( // Leveransepakke Classifier Leveransepakke Classifier = "Leveransepakke" // Webleveransepakke Classifier Webleveransepakke Classifier = "Webleveransepakke" // Doozerleveransepakke Classifier Doozerleveransepakke Classifier = "Doozerleveransepakke" )
type CmdConfigReader ¶
CmdConfigReader reads build configuration from commandline parameters
func (*CmdConfigReader) ReadConfig ¶
func (m *CmdConfigReader) ReadConfig() (*Config, error)
ReadConfig from commandline parameters
type Config ¶
type Config struct { ApplicationType ApplicationType ApplicationSpec ApplicationSpec DockerSpec DockerSpec BuilderSpec BuilderSpec BinaryBuild bool LocalBuild bool TLSVerify bool BuildTimeout time.Duration NoPush bool Sporingstjeneste string OwnerReferenceUUID string BinaryBuildType BinaryBuildType NexusIQReportURL string }
Config contains the build config
type DockerBaseImageSpec ¶
DockerBaseImageSpec config
type DockerSpec ¶
type DockerSpec struct { OutputRegistry string OutputRepository string InternalPullRegistry 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 }
DockerSpec config
func (DockerSpec) GetExternalRegistryWithoutProtocol ¶
func (m DockerSpec) GetExternalRegistryWithoutProtocol() string
GetExternalRegistryWithoutProtocol Get external registry url without protocol
func (DockerSpec) GetInternalPullRegistryWithoutProtocol ¶
func (m DockerSpec) GetInternalPullRegistryWithoutProtocol() string
GetInternalPullRegistryWithoutProtocol Get internal registry url without protocol
type FileConfigReader ¶
type FileConfigReader struct {
// contains filtered or unexported fields
}
FileConfigReader reads build configuration from file
func (*FileConfigReader) ReadConfig ¶
func (m *FileConfigReader) ReadConfig() (*Config, error)
ReadConfig from file
type InClusterConfigReader ¶
type InClusterConfigReader struct { }
InClusterConfigReader reads build configuration from the builder pod
func (*InClusterConfigReader) ReadConfig ¶
func (m *InClusterConfigReader) ReadConfig() (*Config, error)
ReadConfig from the buildConfig
type MavenGav ¶
type MavenGav struct { ArtifactID string GroupID string Version string Classifier Classifier Type PackageType }
MavenGav GAV parameters
func (*MavenGav) IsSnapshot ¶
IsSnapshot Check if GAV is snapshot
type NexusAccess ¶
NexusAccess nexus url and nexus credentials
func ReadNexusAccessFromEnvVars ¶
func ReadNexusAccessFromEnvVars() (*NexusAccess, error)
ReadNexusAccessFromEnvVars read nexusUrl, nesusUser, and nexusPassword from env variables and return NexusAccess
func ReadNexusConfigFromFileSystem ¶
func ReadNexusConfigFromFileSystem() (*NexusAccess, error)
ReadNexusConfigFromFileSystem read nexusUrl, nexusUser, and nexusPassword from file and return NexusAccess
func (NexusAccess) IsValid ¶
func (n NexusAccess) IsValid() bool
IsValid check username, password and url is set
type PackageType ¶
type PackageType string
PackageType type string
const ( // ZipPackaging PackageType ZipPackaging PackageType = "zip" // TgzPackaging PackageType TgzPackaging PackageType = "tgz" )
type PushExtraTags ¶
PushExtraTags config
func (*PushExtraTags) ToStringValue ¶
func (m *PushExtraTags) ToStringValue() string
ToStringValue Generates the tags given the appversion and extra tag configuration. Don't do any filtering
type Reader ¶ added in v2.7.12
Reader interface that provides the ReadConfig method
func NewCmdConfigReader ¶
NewCmdConfigReader returns a Reader of type CmdConfigReader
func NewFileConfigReader ¶
NewFileConfigReader returns a Reader of type FileConfigReader
func NewInClusterConfigReader ¶
func NewInClusterConfigReader() Reader
NewInClusterConfigReader returns a Reader of type InClusterConfigReader