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 ¶
Package sources contains Zarf packager sources
Index ¶
- func NewFromLocation(bundleCfg types.BundleConfig, pkg types.Package, ...) (zarfSources.PackageSource, error)
- type NamespaceOverrideMap
- type RemoteBundle
- func (r *RemoteBundle) Collect(_ context.Context, _ string) (string, error)
- func (r *RemoteBundle) LoadPackage(_ context.Context, dst *layout.PackagePaths, ...) (v1alpha1.ZarfPackage, []string, error)
- func (r *RemoteBundle) LoadPackageMetadata(_ context.Context, dst *layout.PackagePaths, _ bool, _ bool) (v1alpha1.ZarfPackage, []string, error)
- type TarballBundle
- func (t *TarballBundle) Collect(_ context.Context, _ string) (string, error)
- func (t *TarballBundle) LoadPackage(_ context.Context, dst *layout.PackagePaths, ...) (v1alpha1.ZarfPackage, []string, error)
- func (t *TarballBundle) LoadPackageMetadata(_ context.Context, dst *layout.PackagePaths, _ bool, _ bool) (v1alpha1.ZarfPackage, []string, error)
- type ZarfState
- func (z *ZarfState) Collect(_ context.Context, _ string) (string, error)
- func (z *ZarfState) LoadPackage(_ context.Context, _ *layout.PackagePaths, _ filters.ComponentFilterStrategy, ...) (v1alpha1.ZarfPackage, []string, error)
- func (z *ZarfState) LoadPackageMetadata(_ context.Context, _ *layout.PackagePaths, _ bool, _ bool) (pkg v1alpha1.ZarfPackage, warnings []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromLocation ¶ added in v0.15.0
func NewFromLocation(bundleCfg types.BundleConfig, pkg types.Package, opts zarfTypes.ZarfPackageOptions, sha string, nsOverrides NamespaceOverrideMap) (zarfSources.PackageSource, error)
NewFromLocation creates a new package source based on pkgLocation
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 RemoteBundle ¶
type RemoteBundle struct {
Pkg types.Package
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) LoadPackage ¶
func (r *RemoteBundle) LoadPackage(_ context.Context, dst *layout.PackagePaths, filter filters.ComponentFilterStrategy, unarchiveAll bool) (v1alpha1.ZarfPackage, []string, error)
LoadPackage loads a Zarf package from a remote bundle
func (*RemoteBundle) LoadPackageMetadata ¶
func (r *RemoteBundle) LoadPackageMetadata(_ context.Context, dst *layout.PackagePaths, _ 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
// 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(_ context.Context, dst *layout.PackagePaths, filter filters.ComponentFilterStrategy, unarchiveAll bool) (v1alpha1.ZarfPackage, []string, error)
LoadPackage loads a Zarf package from a local tarball bundle
func (*TarballBundle) LoadPackageMetadata ¶
func (t *TarballBundle) LoadPackageMetadata(_ context.Context, dst *layout.PackagePaths, _ bool, _ bool) (v1alpha1.ZarfPackage, []string, error)
LoadPackageMetadata loads a Zarf package's metadata from a local tarball bundle
type ZarfState ¶ added in v0.15.0
type ZarfState struct {
// contains filtered or unexported fields
}
ZarfState is a package source for Zarf packages that have already been deployed
func NewFromZarfState ¶ added in v0.15.0
func NewFromZarfState(client kubernetes.Interface, pkgName string) (*ZarfState, error)
NewFromZarfState creates a new ZarfState package source only used for remove operations on prune
func (*ZarfState) Collect ¶ added in v0.15.0
Collect doesn't need to be implemented because this source is only used for package removal
func (*ZarfState) LoadPackage ¶ added in v0.15.0
func (z *ZarfState) LoadPackage(_ context.Context, _ *layout.PackagePaths, _ filters.ComponentFilterStrategy, _ bool) (v1alpha1.ZarfPackage, []string, error)
LoadPackage doesn't need to be implemented because this source is only used for package removal