Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComponentArchiveCommand ¶
NewComponentArchiveCommand creates a new component archive command.
func NewCreateCommand ¶
NewCreateCommand creates a new component descriptor
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 ¶
func (o *ComponentArchiveOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error
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 ¶
func (o *CreateOptions) Run(_ context.Context, log logr.Logger, fs vfs.FileSystem) error
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 ¶
func (o *ExportOptions) Run(_ context.Context, fs vfs.FileSystem) error
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. |
Click to show internal directories.
Click to hide internal directories.