Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortDownstreamVersions ¶
func SortDownstreamVersions(versions *DownstreamVersions, bySemver bool)
Modified bubble sort: instead of comparing adjacent elements, compare the elements at the semvers only. Input is assumed to be sorted by sequence so non-semver elements are already in correct order.
Types ¶
type DownloadStatus ¶
type Downstream ¶
type DownstreamOutput ¶
type DownstreamOutput struct { DryrunStdout string `json:"dryrunStdout"` DryrunStderr string `json:"dryrunStderr"` ApplyStdout string `json:"applyStdout"` ApplyStderr string `json:"applyStderr"` HelmStdout string `json:"helmStdout"` HelmStderr string `json:"helmStderr"` RenderError string `json:"renderError"` }
type DownstreamVersion ¶
type DownstreamVersion struct { VersionLabel string `json:"versionLabel"` Semver *semver.Version `json:"semver,omitempty"` Status storetypes.DownstreamVersionStatus `json:"status"` CreatedOn *time.Time `json:"createdOn"` ParentSequence int64 `json:"parentSequence"` Sequence int64 `json:"sequence"` ReleaseNotes string `json:"releaseNotes"` DeployedAt *time.Time `json:"deployedAt"` Source string `json:"source"` PreflightResult string `json:"preflightResult,omitempty"` PreflightResultCreatedAt *time.Time `json:"preflightResultCreatedAt,omitempty"` PreflightSkipped bool `json:"preflightSkipped"` DiffSummary string `json:"diffSummary,omitempty"` DiffSummaryError string `json:"diffSummaryError,omitempty"` CommitURL string `json:"commitUrl,omitempty"` GitDeployable bool `json:"gitDeployable,omitempty"` UpstreamReleasedAt *time.Time `json:"upstreamReleasedAt,omitempty"` YamlErrors []v1beta1.InstallationYAMLError `json:"yamlErrors,omitempty"` DownloadStatus DownloadStatus `json:"downloadStatus,omitempty"` NeedsKotsUpgrade bool `json:"needsKotsUpgrade"` KotsApplication *v1beta1.Application `json:"-"` }
type DownstreamVersions ¶
type DownstreamVersions struct { CurrentVersion *DownstreamVersion PendingVersions []*DownstreamVersion PastVersions []*DownstreamVersion AllVersions []*DownstreamVersion }
Click to show internal directories.
Click to hide internal directories.