download

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 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 added in v0.4.0

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

func NewAction added in v0.4.0

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

func (*Action) Add added in v0.4.0

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

func (*Action) AddOptions added in v0.4.0

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

func (*Action) Close added in v0.4.0

func (d *Action) Close() error

func (*Action) Out added in v0.4.0

func (d *Action) Out() error

func (*Action) Save added in v0.4.0

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 added in v0.4.0

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