Documentation
¶
Index ¶
- Constants
- Variables
- type Layer
- type LayerRepresentation
- type LayerType
- type Layers
- type OCI
- type PathExtractor
- func (p PathExtractor) ExtractLayer(tarPath string) (string, error)
- func (p PathExtractor) GetPathForFetchedLayer(ctx context.Context, imageSpec v1beta2.ImageSpec, keyChain authn.Keychain, ...) (string, error)
- func (p PathExtractor) GetPathFromRawManifest(ctx context.Context, imageSpec v1beta2.ImageSpec, keyChain authn.Keychain) (string, error)
Constants ¶
View Source
const DefaultRepoSubdirectory = "component-descriptors"
Variables ¶
View Source
var ( ErrAccessTypeNotSupported = errors.New("access type not supported") ErrComponentNameMappingNotSupported = errors.New("componentNameMapping not supported") )
View Source
var ( ErrImageLayerPull = errors.New("failed to pull layer") ErrInvalidImageSpecType = fmt.Errorf("invalid image spec type provided,"+ " only '%s' '%s' are allowed", v1beta2.OciRefType, v1beta2.OciDirType) ErrTaintedArchive = errors.New("content filepath tainted") ErrInvalidArchiveStructure = errors.New("tar archive has invalid structure, expected a single file") )
View Source
var ErrLayerParsing = errors.New("layer could not be parsed")
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct { v1beta2.LayerName LayerRepresentation }
type LayerRepresentation ¶
type OCI ¶
type OCI struct { Repo string `json:"repo"` Name string `json:"name"` Ref string `json:"ref"` Type string `json:"type"` CredSecretSelector *apimetav1.LabelSelector `json:"credSecretSelector,omitempty"` }
func (*OCI) ToInstallRaw ¶
type PathExtractor ¶
type PathExtractor struct {
// contains filtered or unexported fields
}
func NewPathExtractor ¶
func NewPathExtractor() *PathExtractor
func (PathExtractor) ExtractLayer ¶
func (p PathExtractor) ExtractLayer(tarPath string) (string, error)
func (PathExtractor) GetPathForFetchedLayer ¶
Click to show internal directories.
Click to hide internal directories.