publish

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 44 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateICSPs

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

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 ErrArchiveFileNotFound

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

func (*ErrArchiveFileNotFound) Error

func (e *ErrArchiveFileNotFound) Error() string

type Options

type Options struct {
	*cli.RootOptions

	ArchivePath     string
	ToMirror        string
	OutputDir       string
	BuildxPlatforms []string
}

func (*Options) BindFlags

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

func (*Options) Run

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

func (*Options) ValidatePaths

func (o *Options) ValidatePaths() error

ValidatePaths validate the existence of paths from user flags

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

Jump to

Keyboard shortcuts

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