cincinnati

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

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 NewClient

func NewClient(id uuid.UUID) Client

NewClient creates a new Cincinnati client with the given client identifier.

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.

type Update

type Update node

Update is a single node from the update graph.

Jump to

Keyboard shortcuts

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