componentarchive

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponentArchiveCommand

func NewComponentArchiveCommand(ctx context.Context) *cobra.Command

NewComponentArchiveCommand creates a new component archive command.

func NewCreateCommand

func NewCreateCommand(ctx context.Context) *cobra.Command

NewCreateCommand creates a new component descriptor

func NewExportCommand

func NewExportCommand(ctx context.Context) *cobra.Command

NewExportCommand creates a new export command that packages a component archive and exports is as tar or compressed tar.

Types

type ComponentArchiveOptions

type ComponentArchiveOptions struct {
	componentarchive.BuilderOptions
	TemplateOptions template.Options

	// ResourcesPaths defines all paths to the resource definitions.
	ResourcesPaths []string
	// SourcesPaths defines all paths to the source definitions.
	SourcesPaths []string
	// ComponentReferencesPaths defines all paths to the component-references definitions.
	ComponentReferencesPaths []string
	// ArchiveFormat defines the component archive format of a component archive defines in a filesystem
	ArchiveFormat ctf.ArchiveFormat
	// TempDir is the temporary directory where the component archive is build.
	// Optional will be defaulted to a random os-specific temporary directory
	TempDir string

	// CTFPath is the path to the ctf.
	// The component archive will be automatically added to the ctf if set
	CTFPath string
}

func (*ComponentArchiveOptions) AddFlags

func (o *ComponentArchiveOptions) AddFlags(fs *pflag.FlagSet)

func (*ComponentArchiveOptions) Complete

func (o *ComponentArchiveOptions) Complete(args []string) error

func (*ComponentArchiveOptions) Run

type CreateOptions

type CreateOptions struct {
	componentarchive.BuilderOptions
}

CreateOptions defines all options for the create command.

func (*CreateOptions) AddFlags

func (o *CreateOptions) AddFlags(fs *pflag.FlagSet)

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(args []string) error

Complete parses the given command arguments and applies default options.

func (*CreateOptions) Run

Run runs the export for a component archive.

type ExportOptions

type ExportOptions struct {
	// ComponentArchivePath defines the path to the component archive
	ComponentArchivePath string
	// OutputPath defines the path where the exported component archive should be written to.
	OutputPath string
	// OutputFormat defines the output format of the component archive.
	OutputFormat ctf.ArchiveFormat
}

ExportOptions defines all options for the export command.

func (*ExportOptions) AddFlags

func (o *ExportOptions) AddFlags(fs *pflag.FlagSet)

func (*ExportOptions) Complete

func (o *ExportOptions) Complete(args []string) error

Complete parses the given command arguments and applies default options.

func (*ExportOptions) Run

Run runs the export for a component archive.

Directories

Path Synopsis
SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.
sign
SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.
verify
SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.

Jump to

Keyboard shortcuts

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