sources

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package sources contains Zarf packager sources

Package sources contains Zarf packager sources

Package sources contains Zarf packager sources

Package sources contains Zarf packager sources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(pkgLocation string, pkgName string, opts zarfTypes.ZarfPackageOptions, sha string, nsOverrides NamespaceOverrideMap) (zarfSources.PackageSource, error)

New creates a new package source based on pkgLocation

Types

type NamespaceOverrideMap added in v0.10.2

type NamespaceOverrideMap = map[string]map[string]string

NamespaceOverrideMap is a map of component names to a map of chart names to namespace overrides

type RemoteBundle

type RemoteBundle struct {
	PkgName        string
	PkgOpts        *zarfTypes.ZarfPackageOptions
	PkgManifestSHA string
	TmpDir         string
	Remote         *oci.OrasRemote
	// contains filtered or unexported fields
}

RemoteBundle is a package source for remote bundles that implements Zarf's packager.PackageSource

func (*RemoteBundle) Collect

func (r *RemoteBundle) Collect(_ string) (string, error)

Collect doesn't need to be implemented

func (*RemoteBundle) LoadPackage

func (r *RemoteBundle) LoadPackage(dst *layout.PackagePaths, filter filters.ComponentFilterStrategy, unarchiveAll bool) (zarfTypes.ZarfPackage, []string, error)

LoadPackage loads a Zarf package from a remote bundle

func (*RemoteBundle) LoadPackageMetadata

func (r *RemoteBundle) LoadPackageMetadata(dst *layout.PackagePaths, _ bool, _ bool) (zarfTypes.ZarfPackage, []string, error)

LoadPackageMetadata loads a Zarf package's metadata from a remote bundle

type TarballBundle

type TarballBundle struct {
	PkgOpts        *zarfTypes.ZarfPackageOptions
	PkgManifestSHA string
	TmpDir         string
	BundleLocation string
	PkgName        string
	// contains filtered or unexported fields
}

TarballBundle is a package source for local tarball bundles that implements Zarf's packager.PackageSource

func (*TarballBundle) Collect

func (t *TarballBundle) Collect(_ string) (string, error)

Collect doesn't need to be implemented

func (*TarballBundle) LoadPackage

func (t *TarballBundle) LoadPackage(dst *layout.PackagePaths, filter filters.ComponentFilterStrategy, unarchiveAll bool) (zarfTypes.ZarfPackage, []string, error)

LoadPackage loads a Zarf package from a local tarball bundle

func (*TarballBundle) LoadPackageMetadata

func (t *TarballBundle) LoadPackageMetadata(dst *layout.PackagePaths, _ bool, _ bool) (zarfTypes.ZarfPackage, []string, error)

LoadPackageMetadata loads a Zarf package's metadata from a local tarball bundle

Jump to

Keyboard shortcuts

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