packagecontent

package
v1.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPackagesFromFiles added in v1.9.1

func AllPackagesFromFiles(ctx context.Context, scheme *runtime.Scheme, files Files, component string) (map[string]*Package, error)

func TemplateSpecFromPackage

func TemplateSpecFromPackage(pkg *Package) (templateSpec corev1alpha1.ObjectSetTemplateSpec)

Types

type ConditionMapParseError

type ConditionMapParseError struct {
	Message    string
	LineNumber int
}

func (ConditionMapParseError) Error

func (e ConditionMapParseError) Error() string

type Files

type Files map[string][]byte

Files maps filenames to file contents.

func FilesFromPackage

func FilesFromPackage(pkg *Package) (Files, error)

func (Files) DeepCopy

func (f Files) DeepCopy() Files

Returns a deep copy of the files map.

type Package

type Package struct {
	PackageManifest     *manifestsv1alpha1.PackageManifest
	PackageManifestLock *manifestsv1alpha1.PackageManifestLock
	Objects             map[string][]unstructured.Unstructured
}

PackageContent represents the parsed content of an PKO package.

func ExtractComponentPackage added in v1.9.1

func ExtractComponentPackage(pkgMap map[string]*Package, component string) (*Package, error)

func PackageFromFiles

func PackageFromFiles(ctx context.Context, scheme *runtime.Scheme, files Files, component string) (*Package, error)

Jump to

Keyboard shortcuts

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