packager2

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package packager2 contains functions for inspecting packages.

Package packager2 is the new implementation for packager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inspect added in v0.41.0

Inspect list the contents of a package.

func InspectList added in v0.41.0

func InspectList(ctx context.Context, opt ZarfInspectOptions) ([]string, error)

InspectList lists the images in a component action

func LoadPackage

func LoadPackage(ctx context.Context, opt LoadOptions) (*layout.PackageLayout, error)

LoadPackage optionally fetches and loads the package from the given source.

func Mirror

func Mirror(ctx context.Context, opt MirrorOptions) error

Mirror mirrors the package contents to the given registry and git server.

func Pull

func Pull(ctx context.Context, src, dir, shasum string, filter filters.ComponentFilterStrategy) error

Pull fetches the Zarf package from the given sources.

func Remove added in v0.41.0

func Remove(ctx context.Context, opt RemoveOptions) error

Remove removes a package that was already deployed onto a cluster, uninstalling all installed helm charts.

Types

type LoadOptions

type LoadOptions struct {
	Source                  string
	Shasum                  string
	PublicKeyPath           string
	SkipSignatureValidation bool
	Filter                  filters.ComponentFilterStrategy
}

LoadOptions are the options for LoadPackage.

type MirrorOptions

type MirrorOptions struct {
	Cluster         *cluster.Cluster
	PkgLayout       *layout.PackageLayout
	Filter          filters.ComponentFilterStrategy
	RegistryInfo    types.RegistryInfo
	GitInfo         types.GitServerInfo
	NoImageChecksum bool
	Retries         int
}

MirrorOptions are the options for Mirror.

type RemoveOptions added in v0.41.0

type RemoveOptions struct {
	Source                  string
	Cluster                 *cluster.Cluster
	Filter                  filters.ComponentFilterStrategy
	SkipSignatureValidation bool
	PublicKeyPath           string
}

RemoveOptions are the options for Remove.

type ZarfInspectOptions added in v0.41.0

type ZarfInspectOptions struct {
	Source                  string
	Cluster                 *cluster.Cluster
	ViewSBOM                bool
	SBOMOutputDir           string
	ListImages              bool
	SkipSignatureValidation bool
	PublicKeyPath           string
}

ZarfInspectOptions tracks the user-defined preferences during a package inspection.

Directories

Path Synopsis
Package layout contains functions for inteacting the Zarf packages.
Package layout contains functions for inteacting the Zarf packages.

Jump to

Keyboard shortcuts

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