Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GraphMediaType is the media-type specified in the HTTP Accept header // of requests sent to the Cincinnati-v1 Graph API. GraphMediaType = "application/json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Cincinnati client which can be used to fetch update graphs from an upstream Cincinnati stack.
func (Client) GetUpdates ¶
func (c Client) GetUpdates(uri *url.URL, arch string, channel string, version semver.Version) ([]Update, error)
GetUpdates fetches the next-applicable update payloads from the specified upstream Cincinnati stack given the current version and channel. The next- applicable updates are determined by downloading the update graph, finding the current version within that graph (typically the root node), and then finding all of the children. These children are the available updates for the current version and their payloads indicate from where the actual update image can be downloaded.
type Error ¶
type Error struct { // Reason is the reason suggested for the ClusterOperator status condition. Reason string // Message is the message suggested for the ClusterOperator status condition. Message string // contains filtered or unexported fields }
Error is returned when are unable to get updates.
Click to show internal directories.
Click to hide internal directories.