candidate

package
v0.0.0-...-ab90a17 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFields

func DefaultFields(candidate api.Candidate) api.Candidate

DefaultFields add default values to the fields of candidate

func Endpoint

func Endpoint(d api.ReleaseDescriptor, version, stream, suffix string) string

func ResolvePullSpec

func ResolvePullSpec(client release.HTTPClient, candidate api.Candidate) (string, error)

ResolvePullSpec determines the pull spec for the candidate release

func ResolvePullSpecCommon

func ResolvePullSpecCommon(client release.HTTPClient, endpoint string, bounds *api.VersionBounds, relative int) (string, error)

func ServiceHost

func ServiceHost(d api.ReleaseDescriptor) string

Types

type Release

type Release struct {
	Name        string `json:"name"`
	Phase       string `json:"phase"`
	PullSpec    string `json:"pullSpec"`
	DownloadURL string `json:"downloadURL"`
}

Release contains metadata for a release payload

func ResolveReleaseCommon

func ResolveReleaseCommon(client release.HTTPClient, endpoint string, bounds *api.VersionBounds, relative int, silent bool) (Release, error)

Jump to

Keyboard shortcuts

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