download

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewCommand

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

NewCommand creates a new resources command.

Types

type Command

type Command struct {
	utils.BaseCommand

	Executable    bool
	ResourceTypes []string

	Comp string
	Ids  []v1.Identity
}

func (*Command) AddFlags

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

func (*Command) Complete

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

func (*Command) ForName

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

func (*Command) Run

func (o *Command) Run() error

type Option

type Option struct {
	UseHandlers bool
}

func From

func From(o *output.Options) *Option

func NewOptions

func NewOptions() *Option

func (*Option) AddFlags

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

func (*Option) Usage

func (o *Option) Usage() string

Jump to

Keyboard shortcuts

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