Documentation ¶
Overview ¶
Package packager contains functions for interacting with, managing and deploying zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Package packager contains functions for interacting with, managing and deploying Zarf packages.
Index ¶
- Variables
- func GetInitPackageName(arch string) string
- func ReloadComponentTemplate(component *types.ZarfComponent) error
- func ReloadComponentTemplatesInPackage(zarfPackage *types.ZarfPackage) error
- type Modifier
- type Packager
- func (p *Packager) ClearTempPaths()
- func (p *Packager) Create() (err error)
- func (p *Packager) Deploy() (err error)
- func (p *Packager) DevDeploy() error
- func (p *Packager) FindImages() (imgMap map[string][]string, err error)
- func (p *Packager) GetPackageName() string
- func (p *Packager) Inspect() (err error)
- func (p *Packager) Mirror() (err error)
- func (p *Packager) Publish() (err error)
- func (p *Packager) Pull() (err error)
- func (p *Packager) Remove() (err error)
Constants ¶
This section is empty.
Variables ¶
var ( // Find zarf-packages on the local system (https://regex101.com/r/TUUftK/1) ZarfPackagePattern = regexp.MustCompile(`zarf-package[^\s\\\/]*\.tar(\.zst)?$`) // Find zarf-init packages on the local system ZarfInitPattern = regexp.MustCompile(GetInitPackageName("") + "$") )
Zarf Packager Variables.
Functions ¶
func GetInitPackageName ¶
GetInitPackageName returns the formatted name of the init package.
func ReloadComponentTemplate ¶ added in v0.32.0
func ReloadComponentTemplate(component *types.ZarfComponent) error
ReloadComponentTemplate appends ###ZARF_COMPONENT_NAME### for the component, assigns value, and reloads Any instance of ###ZARF_COMPONENT_NAME### within a component will be replaced with that components name
func ReloadComponentTemplatesInPackage ¶ added in v0.32.0
func ReloadComponentTemplatesInPackage(zarfPackage *types.ZarfPackage) error
ReloadComponentTemplatesInPackage appends ###ZARF_COMPONENT_NAME### for each component, assigns value, and reloads
Types ¶
type Modifier ¶ added in v0.30.0
type Modifier func(*Packager)
Modifier is a function that modifies the packager.
func WithCluster ¶ added in v0.30.0
WithCluster sets the cluster client for the packager.
func WithSource ¶ added in v0.30.0
func WithSource(source sources.PackageSource) Modifier
WithSource sets the source for the packager.
type Packager ¶
type Packager struct {
// contains filtered or unexported fields
}
Packager is the main struct for managing packages.
func New ¶
func New(cfg *types.PackagerConfig, mods ...Modifier) (*Packager, error)
New creates a new package instance with the provided config.
Note: This function creates a tmp directory that should be cleaned up with p.ClearTempPaths().
func NewOrDie ¶
func NewOrDie(config *types.PackagerConfig, mods ...Modifier) *Packager
NewOrDie creates a new package instance with the provided config or throws a fatal error.
Note: This function creates a tmp directory that should be cleaned up with p.ClearTempPaths().
func (*Packager) ClearTempPaths ¶
func (p *Packager) ClearTempPaths()
ClearTempPaths removes the temp directory and any files within it.
func (*Packager) Create ¶
Create generates a Zarf package tarball for a given PackageConfig and optional base directory.
func (*Packager) FindImages ¶
FindImages iterates over a Zarf.yaml and attempts to parse any images.
func (*Packager) GetPackageName ¶
GetPackageName returns the formatted name of the package.
func (*Packager) Mirror ¶ added in v0.29.2
Mirror pulls resources from a package (images, git repositories, etc) and pushes them to remotes in the air gap without deploying them
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package composer contains functions for composing components within Zarf packages.
|
Package composer contains functions for composing components within Zarf packages. |
Package deprecated handles package deprecations and migrations
|
Package deprecated handles package deprecations and migrations |
Package lint contains functions for verifying zarf yaml files are valid
|
Package lint contains functions for verifying zarf yaml files are valid |
Package sources contains core implementations of the PackageSource interface.
|
Package sources contains core implementations of the PackageSource interface. |