Documentation
¶
Overview ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages ¶
Package bundle contains functions for interacting with, managing and deploying UDS packages
Index ¶
- Constants
- func CheckOCISourcePath(source string) (string, error)
- func ValidateArch(arch string) error
- func ValidateBundleSignature(bundleYAMLPath, signaturePath, publicKeyPath string) error
- type Bundle
- func (b *Bundle) CalculateBuildInfo() error
- func (b *Bundle) ClearPaths()
- func (b *Bundle) ConfirmBundleDeploy() (confirm bool)
- func (b *Bundle) Create() error
- func (b *Bundle) CreateZarfPkgs() error
- func (b *Bundle) Deploy() error
- func (b *Bundle) Inspect() error
- func (b *Bundle) PreDeployValidation() (string, string, string, error)
- func (b *Bundle) Publish() error
- func (b *Bundle) Pull() error
- func (b *Bundle) Remove() error
- func (b *Bundle) SetDeploySource(srcDir string)
- func (b *Bundle) ValidateBundleResources(spinner *message.Spinner) error
- type PkgView
- type Provider
Constants ¶
const ( // GHCRPackagesPath is the default package path GHCRPackagesPath = "oci://ghcr.io/defenseunicorns/packages/" // GHCRUDSBundlePath is the default path for uds bundles GHCRUDSBundlePath = GHCRPackagesPath + "uds/bundles/" // GHCRDeliveryBundlePath is the default path for delivery bundles GHCRDeliveryBundlePath = GHCRPackagesPath + "delivery/" )
Variables ¶
This section is empty.
Functions ¶
func CheckOCISourcePath ¶
CheckOCISourcePath checks that provided oci source path is valid, and updates it if it's missing the full path
func ValidateArch ¶
ValidateArch validates that the passed in arch matches the cluster arch
func ValidateBundleSignature ¶
ValidateBundleSignature validates the bundle signature
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle handles bundler operations
func (*Bundle) CalculateBuildInfo ¶
CalculateBuildInfo calculates the build info for the bundle
func (*Bundle) ClearPaths ¶
func (b *Bundle) ClearPaths()
ClearPaths closes any files and clears out the paths used by Bundle
func (*Bundle) ConfirmBundleDeploy ¶ added in v0.10.0
ConfirmBundleDeploy prompts the user to confirm bundle creation
func (*Bundle) CreateZarfPkgs ¶ added in v0.10.4
CreateZarfPkgs creates a zarf package if its missing when in dev mode
func (*Bundle) PreDeployValidation ¶ added in v0.10.0
PreDeployValidation validates the bundle before deployment
func (*Bundle) SetDeploySource ¶ added in v0.11.0
SetDeploySource sets the source for the bundle when in dev mode
type Provider ¶
type Provider interface {
// LoadBundleMetadata loads a bundle's metadata and signature into the temporary directory and returns a map of the bundle's metadata files
//
// these two files are placed in the `dst` directory
//
// : if tarball
// : : extracts the metadata from the tarball
//
// : if OCI ref
// : : pulls the metadata from the OCI ref
LoadBundleMetadata() (types.PathMap, error)
// LoadBundle loads a bundle into the temporary directory and returns a map of the bundle's files
//
// (currently only the remote provider utilizes the concurrency parameter)
LoadBundle(options types.BundlePullOptions, concurrency int) (*types.UDSBundle, types.PathMap, error)
// CreateBundleSBOM creates a bundle-level SBOM from the underlying Zarf packages, if the Zarf package contains an SBOM
CreateBundleSBOM(extractSBOM bool, bundleName string) error
// PublishBundle publishes a bundle to a remote OCI repo
PublishBundle(bundle types.UDSBundle, remote *oci.OrasRemote) error
// contains filtered or unexported methods
}
Provider is an interface for processing bundles
operations that are common no matter the source should be implemented on bundler
func NewBundleProvider ¶
NewBundleProvider returns a new bundler Provider based on the source type