Documentation
¶
Overview ¶
Package component handles publishing remote components
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Publish ¶
func Publish(ctx context.Context, componentPath string, destination registry.Reference, opts PublishOptions) (registry.Reference, error)
Publish validates a v1beta1 ZarfComponentConfig and publishes it as an OCI artifact. The component config is stored as the artifact's config blob; later remote-import support can retrieve it without treating it as a Zarf package.
Types ¶
type PublishOptions ¶
type PublishOptions struct {
// OCIConcurrency configures the number of blobs pushed in parallel.
OCIConcurrency int
// Retries is the number of attempts to make when publishing fails.
Retries int
// SignManifestOptions configures an optional signature published after the component artifact.
// A nil value publishes without signing.
SignManifestOptions *signing.SignManifestOptions
types.RemoteOptions
}
PublishOptions declares parameters for publishing a v1beta1 component config.
Click to show internal directories.
Click to hide internal directories.