Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultStructuralLoader = NewStructuralLoader(scheme)
DefaultStructuralLoader instance with the scheme pre-loaded.
Functions ¶
func ManifestFromFile ¶
func ToV1Alpha1ManifestLock ¶
func ToV1Alpha1ManifestLock(in *manifests.PackageManifestLock) (*manifestsv1alpha1.PackageManifestLock, error)
Converts the internal version of an PackageManifestLock into it's v1alpha1 representation.
Types ¶
type StructuralLoader ¶
type StructuralLoader struct {
// contains filtered or unexported fields
}
StructuralLoader parses the raw package structure to produce something usable.
func NewStructuralLoader ¶
func NewStructuralLoader(scheme *runtime.Scheme) *StructuralLoader
Creates a new StructuralLoaderInstance.
func (*StructuralLoader) Load ¶
func (l *StructuralLoader) Load( ctx context.Context, rawPkg *packagetypes.RawPackage, ) (*packagetypes.Package, error)
Load a Package and it's sub-component Packages.
func (*StructuralLoader) LoadComponent ¶
func (l *StructuralLoader) LoadComponent( ctx context.Context, rawPkg *packagetypes.RawPackage, componentName string, ) (*packagetypes.Package, error)
Load a Sub-Component Package directly ignoring the root-package and any other sub component. Empty componentName represents just the root Package, excluding all individual components.
Click to show internal directories.
Click to hide internal directories.