Documentation
¶
Index ¶
- func GenerateICSPs(imageName string, byteLimit int, icspScope string, ...) (icsps []operatorv1alpha1.ImageContentSourcePolicy, err error)
- func WriteCatalogSource(source imagesource.TypedImageReference, dir string, ...) error
- func WriteICSPs(dir string, icsps []operatorv1alpha1.ImageContentSourcePolicy) error
- type ErrArchiveFileNotFound
- type Options
- type SequenceError
- type UuidError
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 WriteCatalogSource ¶
func WriteCatalogSource(source imagesource.TypedImageReference, dir string, mapping map[imagesource.TypedImageReference]imagesource.TypedImageReference) 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) ValidatePaths ¶
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
Click to show internal directories.
Click to hide internal directories.