Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortDownstreamVersions ¶
func SortDownstreamVersions(versions []*DownstreamVersion, sortBySemver 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.
func SortDownstreamVersionsByCursor ¶
func SortDownstreamVersionsByCursor(allVersions []*DownstreamVersion)
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"` UpdateCursor string `json:"updateCursor"` Cursor *cursor.Cursor `json:"-"` ChannelID string `json:"channelId,omitempty"` IsRequired bool `json:"isRequired"` Status storetypes.DownstreamVersionStatus `json:"status"` CreatedOn *time.Time `json:"createdOn"` ParentSequence int64 `json:"parentSequence"` Sequence int64 `json:"sequence"` DeployedAt *time.Time `json:"deployedAt"` Source string `json:"source"` PreflightSkipped bool `json:"preflightSkipped"` CommitURL string `json:"commitUrl,omitempty"` GitDeployable bool `json:"gitDeployable,omitempty"` UpstreamReleasedAt *time.Time `json:"upstreamReleasedAt,omitempty"` // The following fields are not queried by default and are only added as additional details when needed // because they make the queries really slow when there is a large number of versions IsDeployable bool `json:"isDeployable,omitempty"` NonDeployableCause string `json:"nonDeployableCause,omitempty"` ReleaseNotes string `json:"releaseNotes,omitempty"` PreflightResult string `json:"preflightResult,omitempty"` PreflightResultCreatedAt *time.Time `json:"preflightResultCreatedAt,omitempty"` HasFailingStrictPreflights bool `json:"hasFailingStrictPreflights,omitempty"` DiffSummary string `json:"diffSummary,omitempty"` DiffSummaryError string `json:"diffSummaryError,omitempty"` YamlErrors []v1beta1.InstallationYAMLError `json:"yamlErrors,omitempty"` NeedsKotsUpgrade bool `json:"needsKotsUpgrade,omitempty"` KOTSKinds *kotsutil.KotsKinds `json:"-"` DownloadStatus DownloadStatus `json:"downloadStatus,omitempty"` }
type DownstreamVersionHistory ¶
type DownstreamVersionHistory struct { VersionHistory []*DownstreamVersion `json:"versionHistory"` TotalCount int `json:"totalCount"` NumOfSkippedVersions int `json:"numOfSkippedVersions"` NumOfRemainingVersions int `json:"numOfRemainingVersions"` }
type DownstreamVersions ¶
type DownstreamVersions struct { CurrentVersion *DownstreamVersion PendingVersions []*DownstreamVersion PastVersions []*DownstreamVersion AllVersions []*DownstreamVersion }
Click to show internal directories.
Click to hide internal directories.