sources

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: 23 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 NewSourcesCommand

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

NewSourcesCommand creates a new command to to modify sources of a component descriptor.

Types

type InternalSourceOptions

type InternalSourceOptions struct {
	SourceOptions
	Path string
}

InternalSourceOptions contains the source options as well as the context path where to look for input data.

type Options

type Options struct {
	componentarchive.BuilderOptions
	TemplateOptions template.Options

	// SourceObjectPaths defines the path to the source defined as yaml or json.
	// either components can be added by a yaml resource template or by input flags
	SourceObjectPaths []string

	// SourceObjectPath defines the path to the resources defined as yaml or json
	// DEPRECATED
	SourceObjectPath 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

type SourceOptions

type SourceOptions struct {
	cdv2.Source
	Input *input.BlobInput `json:"input,omitempty"`
}

SourceOptions contains options that are used to describe a source

Jump to

Keyboard shortcuts

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