Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ContentTypeGraphV1 is the MIME type specified in the HTTP Accept header // of requests sent to the Cincinnati Graph API. ContentTypeGraphV1 = "application/vnd.redhat.cincinnati.graph+json; version=1.0" )
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(upstream 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.
Click to show internal directories.
Click to hide internal directories.