types

package
v1.100.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 11

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 DownloadStatus struct {
	Message string `json:"message,omitempty"`
	Status  string `json:"status,omitempty"`
}

type Downstream

type Downstream struct {
	ClusterID        string `json:"id"`
	ClusterSlug      string `json:"slug"`
	Name             string `json:"name"`
	CurrentSequence  int64  `json:"currentSequence"`
	SnapshotSchedule string `json:"snapshotSchedule,omitempty"`
	SnapshotTTL      string `json:"snapshotTtl,omitempty"`
}

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,omitempty"`
	ParentSequence     int64                              `json:"parentSequence"`
	Sequence           int64                              `json:"sequence"`
	DeployedAt         *time.Time                         `json:"deployedAt,omitempty"`
	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"`
	HasConfig                  bool                            `json:"hasConfig,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"`
	AppTitle                   string                          `json:"appTitle,omitempty"`
	AppIconURI                 string                          `json:"appIconUri,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
}

Jump to

Keyboard shortcuts

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