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 ¶
- type NamespaceOverrideMap
- type PackageSource
- type RemoteBundle
- type TarballBundle
- func (t *TarballBundle) Collect(_ context.Context, _ string) (string, error)
- func (t *TarballBundle) LoadPackage(ctx context.Context, filter filters.ComponentFilterStrategy) (*layout.PackageLayout, []string, error)
- func (t *TarballBundle) LoadPackageMetadata(_ context.Context, _ bool, _ bool) (v1alpha1.ZarfPackage, []string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceOverrideMap ¶ added in v0.10.2
NamespaceOverrideMap is a map of component names to a map of chart names to namespace overrides
type PackageSource ¶ added in v0.26.16
type PackageSource interface {
// LoadPackage loads a package from a source.
LoadPackage(ctx context.Context, filter filters.ComponentFilterStrategy) (pkgLayout *layout.PackageLayout, warnings []string, err error)
// LoadPackageMetadata loads a package's metadata from a source.
LoadPackageMetadata(ctx context.Context, wantSBOM bool, skipValidation bool) (pkg v1alpha1.ZarfPackage, warnings []string, err error)
}
func NewFromLocation ¶ added in v0.15.0
func NewFromLocation(bundleCfg types.BundleConfig, pkg types.Package, opts zarfTypes.ZarfPackageOptions, sha string, nsOverrides NamespaceOverrideMap) (PackageSource, error)
NewFromLocation creates a new package source based on pkgLocation
type RemoteBundle ¶
type RemoteBundle struct {
Pkg types.Package
PkgOpts *zarfTypes.ZarfPackageOptions
PkgManifestSHA string
TmpDir string
PublicKeyPath string
Remote *oci.OrasRemote
SkipSignatureValidation bool
// contains filtered or unexported fields
}
RemoteBundle is a package source for remote bundles that implements Zarf's packager.PackageSource
func (*RemoteBundle) LoadPackage ¶
func (r *RemoteBundle) LoadPackage(ctx context.Context, filter filters.ComponentFilterStrategy) (*layout.PackageLayout, []string, error)
LoadPackage loads a Zarf package from a remote bundle
func (*RemoteBundle) LoadPackageMetadata ¶
func (r *RemoteBundle) LoadPackageMetadata(ctx context.Context, _ bool, _ bool) (v1alpha1.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
Pkg types.Package
PublicKeyPath string
SkipSignatureValidation bool
// contains filtered or unexported fields
}
TarballBundle is a package source for local tarball bundles that implements Zarf's packager.PackageSource
func (*TarballBundle) LoadPackage ¶
func (t *TarballBundle) LoadPackage(ctx context.Context, filter filters.ComponentFilterStrategy) (*layout.PackageLayout, []string, error)
LoadPackage loads a Zarf package from a local tarball bundle
func (*TarballBundle) LoadPackageMetadata ¶
func (t *TarballBundle) LoadPackageMetadata(_ context.Context, _ bool, _ bool) (v1alpha1.ZarfPackage, []string, error)
LoadPackageMetadata loads a Zarf package's metadata from a local tarball bundle