fetcher

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.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

This section is empty.

Types

type Config

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

Config is the configuration for the fetcher

type Fetcher

type Fetcher interface {
	Fetch() ([]ocispec.Descriptor, error)
	GetPkgMetadata() (zarfTypes.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