Documentation ¶
Index ¶
- type AppVersion
- type ArchitectImage
- type AuroraVersion
- func (m *AuroraVersion) GetAppVersion() AppVersion
- func (m *AuroraVersion) GetCompleteSnapshotVersion() string
- func (m *AuroraVersion) GetCompleteVersion() string
- func (m *AuroraVersion) GetGivenVersion() string
- func (m *AuroraVersion) GetUniqueSnapshotVersion() string
- func (m *AuroraVersion) IsSemanticReleaseVersion() bool
- type BaseImage
- type CompleteVersion
- type DockerImage
- type GivenVersion
- type ImageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchitectImage ¶
type ArchitectImage struct {
Tag string
}
ArchitectImage tag
func (*ArchitectImage) AuroraVersionComponent ¶
func (m *ArchitectImage) AuroraVersionComponent() string
AuroraVersionComponent return architect version component
type AuroraVersion ¶
type AuroraVersion struct { // is a snapshot artifact (the SNAPSHOT-part will be replaced with the timestamp generated by Nexus) Snapshot bool // If the artifact is a snapshot artifact. NPM has different semantics, so we are explicit // contains filtered or unexported fields }
AuroraVersion EKSEMPEL:
Gitt følgende URL http://uil0map-paas-app01.skead.no:9090/v2/aurora/console/tags/list COMPLETE = 2.0.0-b1.11.0-oracle8-1.0.2 LATEST = latest MAJOR = 2 MINOR = 2.0 PATCH = 2.0.0 OutputImage.Repository aurora/console
func NewAuroraVersion ¶
func NewAuroraVersion(appVersion string, snapshot bool, givenVersion string, completeVersion CompleteVersion) *AuroraVersion
NewAuroraVersion new AuroraVersion
func NewAuroraVersionFromBuilderAndBase ¶
func NewAuroraVersionFromBuilderAndBase( appVersion string, snapshot bool, givenVersion string, buildImage *ArchitectImage, baseImage DockerImage, hash string) *AuroraVersion
NewAuroraVersionFromBuilderAndBase return new version with builder and base version
func (*AuroraVersion) GetAppVersion ¶
func (m *AuroraVersion) GetAppVersion() AppVersion
GetAppVersion The actual version of the artifact. This will differ from GivenVersion iff the artifact
func (*AuroraVersion) GetCompleteSnapshotVersion ¶
func (m *AuroraVersion) GetCompleteSnapshotVersion() string
GetCompleteSnapshotVersion test-snapshot-b1.11.0-oracle8-1.0.2
func (*AuroraVersion) GetCompleteVersion ¶
func (m *AuroraVersion) GetCompleteVersion() string
GetCompleteVersion 2.0.0-b1.11.0-oracle8-1.0.2
func (*AuroraVersion) GetGivenVersion ¶
func (m *AuroraVersion) GetGivenVersion() string
GetGivenVersion returns the version set in the build config
func (*AuroraVersion) GetUniqueSnapshotVersion ¶
func (m *AuroraVersion) GetUniqueSnapshotVersion() string
GetUniqueSnapshotVersion snapshot version with appended hash
func (*AuroraVersion) IsSemanticReleaseVersion ¶
func (m *AuroraVersion) IsSemanticReleaseVersion() bool
IsSemanticReleaseVersion check if version is a semantic version
type BaseImage ¶
type BaseImage struct { DockerImage ImageInfo *ImageInfo }
BaseImage struct containing base image metadata
type DockerImage ¶
DockerImage tag representation
func (*DockerImage) AuroraVersionComponent ¶
func (m *DockerImage) AuroraVersionComponent() string
AuroraVersionComponent return the aurora version component
func (*DockerImage) GetCompleteDockerTagName ¶
func (m *DockerImage) GetCompleteDockerTagName() string
GetCompleteDockerTagName registry/repository:tag