mirror

package
v0.1.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 77 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// Pinned to upstream opm v1.18.0 (k8s 1.21).
	OPMImage = "quay.io/operator-framework/opm@sha256:038007c1c5d5f0efa50961cbcc097c6e63655a2ab4126547e3c4eb620ad0346e"
)

Functions

func GenerateICSPs

func GenerateICSPs(imageName string, byteLimit int, icspScope string, mapping map[reference.DockerImageReference]reference.DockerImageReference) (icsps []operatorv1alpha1.ImageContentSourcePolicy, err error)

func NewMirrorCmd

func NewMirrorCmd() *cobra.Command

func WriteICSPs

func WriteICSPs(dir string, icsps []operatorv1alpha1.ImageContentSourcePolicy) error

Copied from https://github.com/openshift/oc/blob/5d8dfa1c2e8e7469d69d76f21e0a166a0de8663b/pkg/cli/admin/catalog/mirror.go#L549 Changes made are breaking ICSP and Catalog Source generation into different functions

Types

type AdditionalOptions

type AdditionalOptions struct {
	MirrorOptions
}

func NewAdditionalOptions

func NewAdditionalOptions(mo MirrorOptions) *AdditionalOptions

func (*AdditionalOptions) GetAdditional

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

type ErrArchiveFileNotFound

type ErrArchiveFileNotFound struct {
	// contains filtered or unexported fields
}

func (*ErrArchiveFileNotFound) Error

func (e *ErrArchiveFileNotFound) Error() string

type HelmOptions

type HelmOptions struct {
	MirrorOptions
	// contains filtered or unexported fields
}

func NewHelmOptions

func NewHelmOptions(mo MirrorOptions) *HelmOptions

func (*HelmOptions) PullCharts

type MirrorOptions

type MirrorOptions struct {
	*cli.RootOptions
	OutputDir        string
	ConfigPath       string
	SkipImagePin     bool
	ManifestsOnly    bool
	From             string
	ToMirror         string
	DryRun           bool
	SourceSkipTLS    bool
	DestSkipTLS      bool
	SkipVerification bool
	SkipCleanup      bool
	SkipMissing      bool
	ContinueOnError  bool
	FilterOptions    imagemanifest.FilterOptions

	BuildxPlatforms []string
}

func (*MirrorOptions) BindFlags

func (o *MirrorOptions) BindFlags(fs *pflag.FlagSet)

func (*MirrorOptions) Complete

func (o *MirrorOptions) Complete(args []string) error

func (MirrorOptions) Create

func (o MirrorOptions) Create(ctx context.Context, flags *pflag.FlagSet) error

func (MirrorOptions) Publish

func (o MirrorOptions) Publish(ctx context.Context, cmd *cobra.Command, f kcmdutil.Factory) error

func (*MirrorOptions) Run

func (o *MirrorOptions) Run(cmd *cobra.Command, f kcmdutil.Factory) error

func (*MirrorOptions) Validate

func (o *MirrorOptions) Validate() error

type OperatorOptions

type OperatorOptions struct {
	MirrorOptions

	SkipImagePin bool
	Logger       *logrus.Entry
	// contains filtered or unexported fields
}

OperatorOptions configures either a Full or Diff mirror operation on a particular operator catalog image.

func NewOperatorOptions

func NewOperatorOptions(mo MirrorOptions) *OperatorOptions

func (*OperatorOptions) Diff

Diff mirrors only the diff between each old and new catalog image pair to the <Dir>/src directory.

func (*OperatorOptions) Full

Full mirrors each catalog image in its entirety to the <Dir>/src directory.

type ReleaseOptions

type ReleaseOptions struct {
	MirrorOptions
	// contains filtered or unexported fields
}

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

func NewReleaseOptions

func NewReleaseOptions(mo MirrorOptions, flags *pflag.FlagSet) *ReleaseOptions

NewReleaseOptions defaults ReleaseOptions.

func (*ReleaseOptions) GetReleases

GetReleases will pill release payloads based on user configuration

type SequenceError

type SequenceError struct {
	// contains filtered or unexported fields
}

func (*SequenceError) Error

func (s *SequenceError) Error() string

type UuidError

type UuidError struct {
	InUuid   uuid.UUID
	CurrUuid uuid.UUID
}

func (*UuidError) Error

func (u *UuidError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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