list

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownStatus    = "unknown"
	PrereleaseStatus = "prerelease"
	BehindStatus     = "behind"
	AheadStatus      = "ahead"
	InSyncStatus     = "in-sync"
)
View Source
const (
	NoReleaseVersion = "-"
	NoVersion        = "no version"
)

Variables

This section is empty.

Functions

func FormatReleaseListAsJson added in v0.44.0

func FormatReleaseListAsJson(releaseList ReleaseList) (string, error)

func FormatReleaseListAsTable added in v0.44.0

func FormatReleaseListAsTable(releaseList ReleaseList, referenceEnvironment string, maxColumnWidth int) string

func GetReleaseDisplayVersion added in v0.21.0

func GetReleaseDisplayVersion(rel *v1alpha1.Release) string

Types

type CrossRelease added in v0.44.0

type CrossRelease struct {
	Name     string    `json:"name"`
	Releases []Release `json:"releases"`
}

type Params added in v0.44.0

type Params struct {
	SelectedEnvs         []string
	ReferenceEnvironment string
}

type Release added in v0.44.0

type Release struct {
	*v1alpha1.Release `json:",inline"`
	DisplayVersion    string `json:"version"`
	Status            string `json:"status"`
	Environment       string `json:"environment"`
}

type ReleaseList added in v0.44.0

type ReleaseList struct {
	Environments         []string       `json:"environments"`
	ReferenceEnvironment string         `json:"referenceEnvironment"`
	CrossReleases        []CrossRelease `json:"crossReleases"`
}

func GetReleaseList added in v0.44.0

func GetReleaseList(cat *catalog.Catalog, params Params) (ReleaseList, error)

Jump to

Keyboard shortcuts

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