release

package
v7.24.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveRelease

func ArchiveRelease(name, releases, provider string) error

Archives a release on the filesystem from the given parameters. This is the entry point for the `devctl archive release` command logic.

func BumpAll

func BumpAll(input v1alpha1.Release, manuallyRequestedComponents []string, manuallyRequestedApps []string, releaseType string, appsToDrop map[string]bool, requests []Request, yes bool, output string, changesOnly bool, requestedOnly bool, k8sMajorVersion uint64) ([]string, []string, error)

BumpAll takes all apps and components in the `input` release and looks up on github for the latest version of each. If the version is not specified in the `manuallyRequestedComponents` or `manuallyRequestedApps` it will be bumped to the latest version.

func CreateRelease

func CreateRelease(name, base, releases, provider string, components, apps []string, overwrite bool, creationCommand string, bumpall bool, appsToDrop []string, yes bool, output string, verbose bool, changesOnly bool, requestedOnly bool, updateExisting bool, preserveReadme bool, regenerateReadme bool) error

CreateRelease creates a release on the filesystem from the given parameters. This is the entry point for the `devctl create release` command logic.

func FindNewestApp added in v7.21.0

func FindNewestApp(name string, getUpstreamVersion bool, constraint *semver.Range) (appVersion, error)

func IsBadFormat

func IsBadFormat(err error) bool

IsBadFormat asserts badFormatError.

func IsGithubNotFound

func IsGithubNotFound(err error) bool

func IsInvalidItemType added in v7.20.0

func IsInvalidItemType(err error) bool

IsInvalidItemType asserts invalidItemTypeError.

func IsReleaseNotFound

func IsReleaseNotFound(err error) bool

IsInvalidConfig asserts releaseNotFoundError.

Types

type ReleaseJsonInfo

type ReleaseJsonInfo struct {
	Version          string `json:"version"`
	IsDeprecated     bool   `json:"isDeprecated"`
	ReleaseTimestamp string `json:"releaseTimestamp"`
	ChangelogUrl     string `json:"changelogUrl"`
	IsStable         bool   `json:"isStable"`
}

type ReleaseRequest added in v7.12.0

type ReleaseRequest struct {
	Name     string    `yaml:"name"`
	Requests []Request `yaml:"requests"`
}

type ReleasesJsonData

type ReleasesJsonData struct {
	Releases     []ReleaseJsonInfo `json:"releases"`
	SourceUrl    string            `json:"sourceUrl"`
	ChangelogUrl string            `json:"changelogUrl"`
	Homepage     string            `json:"homepage"`
}

type Request added in v7.12.0

type Request struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

type Requests added in v7.12.0

type Requests struct {
	Releases []ReleaseRequest `yaml:"releases"`
}

func (Requests) ForVersion added in v7.12.0

func (r Requests) ForVersion(version string) ([]Request, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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