resources

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: 24 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 NewResourcesCommand

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

NewResourcesCommand creates a new command to to modify resources of a component descriptor.

Types

type InternalResourceOptions

type InternalResourceOptions struct {
	ResourceOptions
	Path string
}

InternalResourceOptions contains options that are used to describe a resource as well as the filepath of the resource that is used to search for the input blob

type Options

type Options struct {
	componentarchive.BuilderOptions
	TemplateOptions template.Options

	// either components can be added by a yaml resource template or by input flags
	// ResourceObjectPaths defines the path to the resources defined as yaml or json
	// DEPRECATED
	ResourceObjectPath string
	// ResourceObjectPaths contains paths to read the yaml resource template from.
	// If "-" is provided, the resource is read from stdin
	ResourceObjectPaths []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 ResourceOptionList

type ResourceOptionList struct {
	Resources []ResourceOptions `json:"resources"`
}

ResourceOptionList contains a list of options that are used to describe a resource.

type ResourceOptions

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

ResourceOptions contains options that are used to describe a resource

Jump to

Keyboard shortcuts

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