types

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 11

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 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"`
	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"`
}

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