load

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package load for loading a given package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterDefinition

func ClusterDefinition(ctx context.Context, configPath string, _ ClusterOptions) (v1alpha1.ZarfCluster, error)

ClusterDefinition loads a package from the filesystem

func DistroDefinition

func DistroDefinition(ctx context.Context, distroPath string, opts DefinitionOptions) (v1alpha1.ZarfDistro, error)

DistroDefinition returns a ZarfDistro object

Types

type ClusterOptions

type ClusterOptions struct{}

ClusterOptions optional args that will be passed in for loading a distro package

type DefinitionOptions

type DefinitionOptions struct {
	CachePath string
	// Architecture narrows a package that targets several architectures down to a single one.
	// A package that targets one architecture ignores it: the definition already names the only
	// architecture it carries files for.
	Architecture string
	types.RemoteOptions
}

DefinitionOptions are the optional parameters to load.PackageDefinition

Jump to

Keyboard shortcuts

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