packager

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package packager for interacting with a packages distro config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDistro

func LoadDistro(ctx context.Context, source string, opts LoadOptions) (*layout.DistroLayout, error)

LoadDistro fetches, verifies, and loads a Zarf package from the specified source.

func Pull added in v0.9.0

func Pull(ctx context.Context, source, destination string, opts PullOptions) (string, error)

Pull takes a source URL and destination directory, fetches the Cargoship Distro package from the given sources, and returns the path to the fetched package.

Types

type LoadOptions

type LoadOptions struct {
	Shasum       string
	Architecture string
	Output       string
	// number of layers to pull in parallel
	OCIConcurrency int
	// CachePath is used to cache layers from OCI package pulls
	CachePath         string
	VerifyBlobOptions *signing.VerifyBlobOptions
	// Only applicable to OCI + HTTP
	types.RemoteOptions
	// VerificationStrategy for explicit definition
	layout.VerificationStrategy
}

LoadOptions are the options for LoadDistro.

type PullOptions added in v0.9.0

type PullOptions struct {
	// SHASum uniquely identifies a package based on its contents.
	SHASum string
	// Architecture is the package architecture.
	Architecture string
	// Deprecated: Use VerifyBlobOptions instead. PublicKeyPath validates the create-time signage of a package.
	PublicKeyPath string
	// VerifyBlobOptions configures package signature verification.
	VerifyBlobOptions *signing.VerifyBlobOptions
	// OCIConcurrency is the number of layers pulled in parallel
	OCIConcurrency int
	// CachePath is used to cache layers from OCI package pulls
	CachePath string
	types.RemoteOptions
	// VerificationStrategy for explicit definition
	layout.VerificationStrategy
}

PullOptions declares optional configuration for a Pull operation.

Directories

Path Synopsis
Package assemble builds a Cargoship package on disk
Package assemble builds a Cargoship package on disk
Package layout is used to defining the distro package files
Package layout is used to defining the distro package files
Package load for loading a given package
Package load for loading a given package

Jump to

Keyboard shortcuts

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