fetcher

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

Package fetcher contains functionality to fetch local and remote Zarf pkgs for local bundling

Package fetcher contains functionality to fetch local and remote Zarf pkgs for local bundling

Package fetcher contains functionality to fetch local and remote Zarf pkgs for local bundling

Package fetcher contains functionality to fetch local and remote Zarf pkgs for local bundling

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZarfOCIRemote added in v0.28.1

func NewZarfOCIRemote(ctx context.Context, url string, platform ocispec.Platform, mods ...oci.Modifier) (*zoci.Remote, error)

Types

type Config

type Config struct {
	Store                   *ocistore.Store
	TmpDstDir               string
	PkgIter                 int
	NumPkgs                 int
	BundleRootManifest      *ocispec.Manifest
	Bundle                  *types.UDSBundle
	SkipSignatureValidation bool
}

Config is the configuration for the fetcher

type Fetcher

type Fetcher interface {
	Fetch() ([]ocispec.Descriptor, error)
	GetPkgMetadata() (v1alpha1.ZarfPackage, error)
}

Fetcher is the interface for fetching packages

func NewPkgFetcher

func NewPkgFetcher(pkg types.Package, fetcherConfig Config) (Fetcher, error)

NewPkgFetcher creates a fetcher object to pull Zarf pkgs into a local bundle

Jump to

Keyboard shortcuts

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