packagestructure

package
v1.9.2 Latest Latest
Warning

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

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

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 ManifestFromFile[T manifestConstraint, PT interface {
	runtime.Object
	*T
}](
	_ context.Context, scheme *runtime.Scheme,
	path string, manifestBytes []byte,
) (*T, error)

func ToV1Alpha1ManifestLock

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

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.

Jump to

Keyboard shortcuts

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