cli

package
v0.0.0-...-9d098ec Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceKind = "source"
)

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate() *cobra.Command

func NewCmdDelete

func NewCmdDelete() *cobra.Command

func NewCmdGenerate

func NewCmdGenerate() *cobra.Command

func NewCmdGet

func NewCmdGet() *cobra.Command

func NewCmdVersion

func NewCmdVersion() *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	GlobalOptions

	SshKeyFile string
}

func DefaultCreateOptions

func DefaultCreateOptions() *CreateOptions

func (*CreateOptions) Bind

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

func (*CreateOptions) Run

func (o *CreateOptions) Run(ctx context.Context, 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 GenerateOptions

type GenerateOptions struct {
	GlobalOptions
	ImageType           string
	AgentImageURL       string
	ServiceIP           string
	OutputImageFilePath string
	HttpProxyUrl        string
	HttpsProxyUrl       string
	NoProxyDomain       string
}

func DefaultGenerateOptions

func DefaultGenerateOptions() *GenerateOptions

func (*GenerateOptions) Bind

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

func (*GenerateOptions) Complete

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

func (*GenerateOptions) Run

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

func (*GenerateOptions) Validate

func (o *GenerateOptions) 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 {
	ServerUrl string
}

func DefaultGlobalOptions

func DefaultGlobalOptions() GlobalOptions

func (*GlobalOptions) Bind

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

func (*GlobalOptions) Client

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