add

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Names = names.References
	Verb  = verbs.Add
)

Functions

func NewCommand

func NewCommand(ctx clictx.Context, names ...string) *cobra.Command

NewCommand creates a new ctf command.

func NewReferenceSpecificatonProvider

func NewReferenceSpecificatonProvider() ocmcomm.ResourceSpecificationsProvider

Types

type Command

type Command struct {
	common.ResourceAdderCommand
}

func (*Command) ForName

func (o *Command) ForName(name string) *cobra.Command

func (*Command) Run

func (o *Command) Run() error

type ReferenceResourceSpecificationProvider

type ReferenceResourceSpecificationProvider struct {
	*ocmcomm.ResourceMetaDataSpecificationsProvider
}

func (*ReferenceResourceSpecificationProvider) Description

func (*ReferenceResourceSpecificationProvider) Get

func (*ReferenceResourceSpecificationProvider) Resources

type ResourceSpec

type ResourceSpec struct {
	compdescv2.ComponentReference `json:",inline"`
}

func (*ResourceSpec) Info

func (r *ResourceSpec) Info() string

func (*ResourceSpec) Validate

func (r *ResourceSpec) Validate(ctx clictx.Context, input *common.ResourceInput) error

type ResourceSpecHandler

type ResourceSpecHandler struct{}

func (ResourceSpecHandler) Decode

func (ResourceSpecHandler) Decode(data []byte) (common.ResourceSpec, error)

func (ResourceSpecHandler) RequireInputs

func (ResourceSpecHandler) RequireInputs() bool

func (ResourceSpecHandler) Set

Jump to

Keyboard shortcuts

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