release

package
v0.0.0-...-bd484e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//OcDefaultTries is the number of times to execute the oc command on failures
	OcDefaultTries = 5
	// OcDefaultRetryDelay is the time between retries
	OcDefaultRetryDelay = time.Second * 5
	// QueryPattern formats the image names for a given release
	QueryPattern = ".references.spec.tags[] | .name + \" \" + .from.name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release interface {
	ExtractFile(image string, filename string) (string, error)
	GetReleaseArchitecture() (string, error)
	MirrorReleaseImages(envConfig *config.EnvConfig, applianceConfig *config.ApplianceConfig) error
	MirrorBootstrapImages(envConfig *config.EnvConfig, applianceConfig *config.ApplianceConfig) error
}

Release is the interface to use the oc command to the get image info

func NewRelease

func NewRelease(releaseImage, pullSecret string, envConfig *config.EnvConfig) Release

NewRelease is used to set up the executor to run oc commands

Jump to

Keyboard shortcuts

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