graph

package
v0.0.0-...-bd484e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph interface {
	GetReleaseImage(version string, channel, arch *string) (string, string, error)
}

Graph is the interface for fetching info from api.openshift.com/api/upgrades_info/graph

func NewGraph

func NewGraph() Graph

type OcpRelease

type OcpRelease struct {
	// Version is the minor version to search for
	Version string `json:"version"`
	// Channel is the release channel to search in
	Channel ReleaseChannel `json:"channel"`
	// Architecture is the architecture for the release.
	// Defaults to amd64.
	Architecture ReleaseArchitecture `json:"architecture,omitempty"`
}

Release describes a generally available release payload

type Release

type Release struct {
	Version string `json:"version"`
	Payload string `json:"payload"`
}

Release describes a release payload

type ReleaseArchitecture

type ReleaseArchitecture string
const (
	ReleaseArchitectureAMD64   ReleaseArchitecture = "amd64"
	ReleaseArchitecturePPC64le ReleaseArchitecture = "ppc64le"
	ReleaseArchitectureS390x   ReleaseArchitecture = "s390x"
	ReleaseArchitectureARM64   ReleaseArchitecture = "arm64"
)

type ReleaseChannel

type ReleaseChannel string
const (
	ReleaseChannelStable    ReleaseChannel = "stable"
	ReleaseChannelFast      ReleaseChannel = "fast"
	ReleaseChannelCandidate ReleaseChannel = "candidate"
	ReleaseChannelEUS       ReleaseChannel = "eus"
)

type Response

type Response struct {
	Nodes []Release `json:"nodes"`
}

Response is what Cincinnati sends us when querying for releases in a channel

Jump to

Keyboard shortcuts

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