bundle

package
v0.1.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package bundle contains tools for managing container images for internet-disconnected systems.\.

Index

Constants

View Source
const (
	UpdateUrl    string = "https://api.openshift.com/api/upgrades_info/v1/graph"
	OkdUpdateURL string = "https://origin-release.ci.openshift.org/graph"
)
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

func IsBlocked

IsBlocked will return a boolean value on whether an image is specified as blocked in the BundleSpec

func MakeCreateDirs

func MakeCreateDirs(rootDir string) error

func ReconcileBlobs

func ReconcileBlobs(meta v1alpha1.Metadata, sourceDir string) (newBlobs []v1alpha1.Blob, err error)

ReconcileBlobs gather all blobs that were collected during a run and checks against the current list

func ReconcileManifests

func ReconcileManifests(sourceDir string) (manifests []v1alpha1.Manifest, err error)

ReconcileManifest gather all manifests that were collected during a run and checks against the current list

Types

type AdditionalOptions

type AdditionalOptions struct {
	cli.RootOptions
}

func NewAdditionalOptions

func NewAdditionalOptions(ro cli.RootOptions) *AdditionalOptions

func (*AdditionalOptions) GetAdditional

GetAdditional downloads specified images in the imageset-config.yaml under mirror.additonalImages

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, transport *http.Transport) Client

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

func (Client) GetChannelLatest

func (c Client) GetChannelLatest(ctx context.Context, uri *url.URL, arch string, channel string) (semver.Version, error)

func (Client) GetUpdates

func (c Client) GetUpdates(ctx context.Context, uri *url.URL, arch string, channel string, version semver.Version) (Update, []Update, error)

GetUpdates fetches the current and 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.

func (*Error) Error

func (err *Error) Error() string

Error serializes the error as a string, to satisfy the error interface.

type HelmOptions

type HelmOptions struct {
	cli.RootOptions
	// contains filtered or unexported fields
}

func NewHelmOptions

func NewHelmOptions(ro cli.RootOptions) *HelmOptions

func (*HelmOptions) PullCharts

type ReleaseOptions

type ReleaseOptions struct {
	cli.RootOptions
	// contains filtered or unexported fields
}

ReleaseOptions configures either a Full or Diff mirror operation on a particular release image.

func NewReleaseOptions

func NewReleaseOptions(ro cli.RootOptions, flags *pflag.FlagSet) *ReleaseOptions

NewReleaseOptions defaults ReleaseOptions.

func (*ReleaseOptions) GetReleasesDiff

func (*ReleaseOptions) GetReleasesInitial

type Update

type Update node

Update is a single node from the update graph.

func GetLatestVersion

func GetLatestVersion(ch v1alpha1.ReleaseChannel, url, arch string) (Update, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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