release

package
v0.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConditionsShouldDiscardTimestamps = false

Functions

func ApplicationNameForRelease

func ApplicationNameForRelease(rel *shipper.Release) (string, error)

func GetGeneration

func GetGeneration(release *shipper.Release) (int, error)

func GetSiblingReleases added in v0.8.0

func GetSiblingReleases(release *shipper.Release, appReleases []*shipper.Release) (*shipper.Release, *shipper.Release, error)

func HasEmptyEnvironment added in v0.3.0

func HasEmptyEnvironment(rel *shipper.Release) bool

func NewReleaseCondition

func NewReleaseCondition(condType shipper.ReleaseConditionType, status corev1.ConditionStatus, reason, message string) *shipper.ReleaseCondition

func ReleaseAchievedTargetStep added in v0.8.0

func ReleaseAchievedTargetStep(rel *shipper.Release) bool

func ReleaseComplete

func ReleaseComplete(release *shipper.Release) bool

func ReleaseProgressing

func ReleaseProgressing(release *shipper.Release) bool

func ReleaseScheduled

func ReleaseScheduled(release *shipper.Release) bool

func ReleaseStrategyExecuted added in v0.8.0

func ReleaseStrategyExecuted(release *shipper.Release) bool

func RemoveReleaseCondition

func RemoveReleaseCondition(status shipper.ReleaseStatus, condType shipper.ReleaseConditionType)

func SetGeneration

func SetGeneration(release *shipper.Release, generation int)

func SetIteration

func SetIteration(release *shipper.Release, iteration int)

func SetReleaseCondition

func SetReleaseCondition(status *shipper.ReleaseStatus, condition shipper.ReleaseCondition) diff.Diff

func SortByGenerationAscending

func SortByGenerationAscending(rels []*shipper.Release) []*shipper.Release

func SortByGenerationDescending

func SortByGenerationDescending(rels []*shipper.Release) []*shipper.Release

Types

type ByGenerationAscending

type ByGenerationAscending []*shipper.Release

func (ByGenerationAscending) Len

func (a ByGenerationAscending) Len() int

func (ByGenerationAscending) Less

func (a ByGenerationAscending) Less(i, j int) bool

func (ByGenerationAscending) Swap

func (a ByGenerationAscending) Swap(i, j int)

type ByGenerationDescending

type ByGenerationDescending []*shipper.Release

func (ByGenerationDescending) Len

func (a ByGenerationDescending) Len() int

func (ByGenerationDescending) Less

func (a ByGenerationDescending) Less(i, j int) bool

func (ByGenerationDescending) Swap

func (a ByGenerationDescending) Swap(i, j int)

type ReleaseConditionDiff added in v0.7.0

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

func NewReleaseConditionDiff added in v0.7.0

func NewReleaseConditionDiff(c1, c2 *shipper.ReleaseCondition) *ReleaseConditionDiff

func (*ReleaseConditionDiff) IsEmpty added in v0.7.0

func (d *ReleaseConditionDiff) IsEmpty() bool

func (*ReleaseConditionDiff) String added in v0.7.0

func (d *ReleaseConditionDiff) String() string

Jump to

Keyboard shortcuts

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