download

package
v0.0.0-...-877fc11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 32 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 Action

type Action struct {
	// contains filtered or unexported fields
}

func NewAction

func NewAction(ctx ocm.ContextProvider, opts *output.Options) *Action

func (*Action) Add

func (d *Action) Add(e interface{}) error

func (*Action) AddOptions

func (d *Action) AddOptions(opts ...options.Options)

func (*Action) Close

func (d *Action) Close() error

func (*Action) Out

func (d *Action) Out() error

func (*Action) Save

func (d *Action) Save(o *elemhdlr.Object, f string) error

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 {
	SilentOption bool
	UseHandlers  bool
}

func From

func From(o *output.Options) *Option

func NewOptions

func NewOptions(silent ...bool) *Option

func (*Option) AddFlags

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

func (*Option) SetUseHandlers

func (o *Option) SetUseHandlers(ok ...bool) *Option

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