load

package
v0.84.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package load takes a ZarfPackageConfig, composes imports, and validates the con

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefinitionOptions

type DefinitionOptions struct {
	Flavor       string
	SetVariables map[string]string
	// SkipValuesSchemaValidation skips schema validation for the package values entirely.
	SkipValuesSchemaValidation bool
	// CachePath is used to cache layers from skeleton package pulls
	CachePath string
	// IsInteractive decides if Zarf can interactively prompt users through the CLI
	IsInteractive bool
	// SkipVersionCheck skips version requirement validation
	SkipVersionCheck bool
	types.RemoteOptions
}

DefinitionOptions are the optional parameters to load.PackageDefinition

type ResolvedPackage added in v0.84.0

type ResolvedPackage struct {
	PackageDefinition api.PackageDefinition
	ImportedSchemas   []string
}

ResolvedPackage is the result of loading and resolving a package definition. ImportedSchemas is transient assembly state — child schema paths collected during import resolution that must be passed to package assembly for merging.

func PackageDefinition

func PackageDefinition(ctx context.Context, packagePath string, opts DefinitionOptions) (ResolvedPackage, error)

PackageDefinition returns a validated package definition after flavors, imports, variables, and values are applied.

Jump to

Keyboard shortcuts

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