graph

package
v0.0.0-...-09bfc21 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 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() (string, string, error)
}

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

func NewGraph

func NewGraph(config GraphConfig) Graph

type GraphConfig

type GraphConfig struct {
	HTTPClient        HTTPClient
	Arch              string
	Version           string
	CincinnatiAddress *string
	Channel           *ReleaseChannel
}

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

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 string `json:"architecture,omitempty"`
}

OcpRelease 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 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