componentreferences

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddCommand

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

NewAddCommand creates a command to add additional resources to a component descriptor.

func NewCompRefCommand

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

NewCompRefCommand creates a new command to to modify component references of a component descriptor.

Types

type Options

type Options struct {
	componentarchive.BuilderOptions
	TemplateOptions template.Options

	// ComponentReferenceObjectPaths describe the paths to the component reference resources defined as yaml or json.
	// either components can be added by a yaml resource template or by input flags
	ComponentReferenceObjectPaths []string

	// ComponentReferenceObjectPath defines the path to the resources defined as yaml or json
	// DEPRECATED
	ComponentReferenceObjectPath string
}

Options defines the options that are used to add resources to a component descriptor

func (*Options) AddFlags

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

func (*Options) Complete

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

func (*Options) Run

func (o *Options) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error

Jump to

Keyboard shortcuts

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