component

package
v0.87.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL