imagecopy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvOpenShiftImagestreamBackup = "OPENSHIFT_IMAGESTREAM_BACKUP"
	// Prefix to indicate use of plugin registry
	BSLRoutePrefix = "bsl://"
)

Variables

This section is empty.

Functions

func CopyLocalImageStreamImages

func CopyLocalImageStreamImages(
	imageStream imagev1API.ImageStream,
	o CopyLocalImageStreamImagesOptions,
) error

CopyLocalImageStreamImages copies all local images associated with the ImageStream is: ImageStream resource that images are being copied for options: CopyLocalImageStreamImagesOptions struct contains options for this function.

internalRegistryPath: The internal registry path for the cluster in which is comes from, used to determine which images are local
srcRegistry: the registry to copy the images from
destRegistry: the registry to copy the images to
destNamespace: the namespace to copy to
log: the logger to log to
updateDigest: whether to update the input imageStream if the digest changes on pushing to the new registry
ut: the udistribution transport to use

func UsePluginRegistry added in v1.1.0

func UsePluginRegistry() bool

use getter to avoid changing bool in other packages

Types

type CopyLocalImageStreamImagesOptions added in v1.1.0

type CopyLocalImageStreamImagesOptions struct {
	InternalRegistryPath string
	SrcRegistry          string
	DestRegistry         string
	DestNamespace        string
	CopyOptions          *copy.Options
	Log                  logr.Logger
	UpdateDigest         bool
	Ut                   *udistribution.UdistributionTransport
}

Using struct for options clarity when specifying options

func (CopyLocalImageStreamImagesOptions) GetDestRegistry added in v1.1.0

func (o CopyLocalImageStreamImagesOptions) GetDestRegistry() string

func (CopyLocalImageStreamImagesOptions) GetSrcRegistry added in v1.1.0

func (o CopyLocalImageStreamImagesOptions) GetSrcRegistry() string

Jump to

Keyboard shortcuts

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