packager2

package
v0.40.0 Latest Latest
Warning

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

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

Documentation

Overview

Package packager2 is the new implementation for packager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPackage

func LoadPackage(ctx context.Context, opt LoadOptions) (*layout.PackagePaths, 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.

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
	PackagePaths    layout.PackagePaths
	Filter          filters.ComponentFilterStrategy
	RegistryInfo    types.RegistryInfo
	GitInfo         types.GitServerInfo
	NoImageChecksum bool
	Retries         int
}

MirrorOptions are the options for Mirror.

Jump to

Keyboard shortcuts

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