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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentVersionTag = "<componentversion>"
)

Variables

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

Functions

func NewCommand

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

NewCommand creates a new ctf command.

func NewResourceSpecificationsProvider

func NewResourceSpecificationsProvider(ctx clictx.Context, deftype string) common.ResourceSpecificationsProvider

Types

type Command

type Command struct {
	common.ResourceAdderCommand
}

func (*Command) ForName

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

func (*Command) Long

func (o *Command) Long() string

func (*Command) Run

func (o *Command) Run() error

type ResourceSpec

type ResourceSpec struct {
	compdescv2.Resource `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

type ResourceSpecificationsProvider

type ResourceSpecificationsProvider struct {
	*common.ContentResourceSpecificationsProvider
}

func (*ResourceSpecificationsProvider) Description

func (p *ResourceSpecificationsProvider) Description() string

Jump to

Keyboard shortcuts

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