manifest

package
v2.0.0-...-443e6bf Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Log clog.PluggableLoggerInterface
}

func (*Manifest) ExtractLayersOCI

func (o *Manifest) ExtractLayersOCI(fromPath, toPath, label string, oci *v1alpha3.OCISchema) error

ExtractLayersOCI

func (*Manifest) GetImageIndex

func (o *Manifest) GetImageIndex(dir string) (*v1alpha3.OCISchema, error)

GetImageIndex - used to get the oci index.json

func (*Manifest) GetImageManifest

func (o *Manifest) GetImageManifest(file string) (*v1alpha3.OCISchema, error)

GetImageManifest used to ge the manifest in the oci blobs/sha254 directory - found in index.json

func (*Manifest) GetOperatorConfig

func (o *Manifest) GetOperatorConfig(file string) (*v1alpha3.OperatorConfigSchema, error)

GetOperatorConfig used to parse the operator json

func (*Manifest) GetRelatedImagesFromCatalog

func (o *Manifest) GetRelatedImagesFromCatalog(filePath, label string) (map[string][]v1alpha3.RelatedImage, error)

operatorImageExtractDir + "/" + label GetRelatedImagesFromCatalog

func (*Manifest) GetRelatedImagesFromCatalogByFilter

func (o *Manifest) GetRelatedImagesFromCatalogByFilter(filePath, label string, op v1alpha2.Operator, mp map[string]v1alpha3.ISCPackage) (map[string][]v1alpha3.RelatedImage, error)

GetRelatedImagesFromCatalogByFilter

func (*Manifest) GetReleaseSchema

func (o *Manifest) GetReleaseSchema(filePath string) ([]v1alpha3.RelatedImage, error)

GetReleaseSchema

type ManifestInterface

type ManifestInterface interface {
	GetImageIndex(dir string) (*v1alpha3.OCISchema, error)
	GetImageManifest(file string) (*v1alpha3.OCISchema, error)
	GetOperatorConfig(file string) (*v1alpha3.OperatorConfigSchema, error)
	GetRelatedImagesFromCatalog(filePath, label string) (map[string][]v1alpha3.RelatedImage, error)
	GetRelatedImagesFromCatalogByFilter(filePath, label string, op v1alpha2.Operator, mp map[string]v1alpha3.ISCPackage) (map[string][]v1alpha3.RelatedImage, error)
	ExtractLayersOCI(filePath, toPath, label string, oci *v1alpha3.OCISchema) error
	GetReleaseSchema(filePath string) ([]v1alpha3.RelatedImage, error)
}

Jump to

Keyboard shortcuts

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