packagecontent

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 added in v1.7.0

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 PackageFromFiles

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

Jump to

Keyboard shortcuts

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