cli

package
v0.0.0-...-11fb129 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceKind = "source"
)

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

func ConfigFilePath

func ConfigFilePath(context string) string

func NewCmdCreate

func NewCmdCreate() *cobra.Command

func NewCmdDelete

func NewCmdDelete() *cobra.Command

func NewCmdGet

func NewCmdGet() *cobra.Command

func NewCmdVersion

func NewCmdVersion() *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	GlobalOptions
}

func DefaultCreateOptions

func DefaultCreateOptions() *CreateOptions

func (*CreateOptions) Bind

func (o *CreateOptions) Bind(fs *pflag.FlagSet)

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(cmd *cobra.Command, args []string) error

func (*CreateOptions) Run

func (o *CreateOptions) Run(ctx context.Context, args []string) error

func (*CreateOptions) Validate

func (o *CreateOptions) Validate(args []string) error

type DeleteOptions

type DeleteOptions struct {
	GlobalOptions
}

func DefaultDeleteOptions

func DefaultDeleteOptions() *DeleteOptions

func (*DeleteOptions) Bind

func (o *DeleteOptions) Bind(fs *pflag.FlagSet)

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete(cmd *cobra.Command, args []string) error

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(ctx context.Context, args []string) error

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate(args []string) error

type GetOptions

type GetOptions struct {
	GlobalOptions

	Output string
}

func DefaultGetOptions

func DefaultGetOptions() *GetOptions

func (*GetOptions) Bind

func (o *GetOptions) Bind(fs *pflag.FlagSet)

func (*GetOptions) Complete

func (o *GetOptions) Complete(cmd *cobra.Command, args []string) error

func (*GetOptions) Run

func (o *GetOptions) Run(ctx context.Context, args []string) error

func (*GetOptions) Validate

func (o *GetOptions) Validate(args []string) error

type GlobalOptions

type GlobalOptions struct {
	ConfigFilePath string
	Context        string
}

func DefaultGlobalOptions

func DefaultGlobalOptions() GlobalOptions

func (*GlobalOptions) Bind

func (o *GlobalOptions) Bind(fs *pflag.FlagSet)

func (*GlobalOptions) Complete

func (o *GlobalOptions) Complete(cmd *cobra.Command, args []string) error

func (*GlobalOptions) Validate

func (o *GlobalOptions) Validate(args []string) error

type VersionOptions

type VersionOptions struct {
	Output string
}

func DefaultVersionOptions

func DefaultVersionOptions() *VersionOptions

func (*VersionOptions) Run

func (o *VersionOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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