commands

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrArgument           = errors.New("argument error")
	ErrInvalidArgument    = errors.New("invalid argument")
	ErrChartCommandFailed = errors.New("chart command failed")
	ErrChartInitFailed    = errors.New("chart init failed")
	ErrChartAddFailed     = errors.New("chart add failed")
	ErrChartUpdateFailed  = errors.New("chart update failed")
	ErrChartSetFailed     = errors.New("chart set failed")
	ErrChartRepoAddFailed = errors.New("chart repo add failed")
)
View Source
var (
	ErrLogHandlerFailed = errors.New("log handler failed")
)

Functions

func GetVersionString

func GetVersionString() string

func NewChartAddCmd

func NewChartAddCmd(args *ChartArgs) *cobra.Command

func NewChartCmd

func NewChartCmd(arg *RootArgs) *cobra.Command

NewChartCmd returns the chart command.

func NewChartInitCmd

func NewChartInitCmd(args *ChartArgs) *cobra.Command

func NewChartRepoAddCmd

func NewChartRepoAddCmd(args *ChartArgs) *cobra.Command

func NewChartRepoCmd

func NewChartRepoCmd(args *ChartArgs) *cobra.Command

func NewChartSetCmd

func NewChartSetCmd(args *ChartArgs) *cobra.Command

func NewChartUpdateCmd

func NewChartUpdateCmd(args *ChartArgs) *cobra.Command

func NewExportCmd

func NewExportCmd(arg *RootArgs) *cobra.Command

NewExportCmd returns the export command.

func NewRootCmd

func NewRootCmd(name, shortDesc, longDesc string) *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd returns the version command.

func RegisterEnabledPlugins

func RegisterEnabledPlugins()

Types

type ChartArgs

type ChartArgs struct {
	*RootArgs
	// contains filtered or unexported fields
}

func NewChartArgs

func NewChartArgs(args *RootArgs) *ChartArgs

func (*ChartArgs) GetMaxExtractSize

func (a *ChartArgs) GetMaxExtractSize() *resource.Quantity

func (*ChartArgs) GetPath

func (a *ChartArgs) GetPath() string

func (*ChartArgs) GetQuiet

func (a *ChartArgs) GetQuiet() bool

func (*ChartArgs) GetTimeout

func (a *ChartArgs) GetTimeout() time.Duration

func (*ChartArgs) GetVendor

func (a *ChartArgs) GetVendor() bool

type ExportArgs

type ExportArgs struct {
	*RootArgs
	// contains filtered or unexported fields
}

ExportArgs holds the arguments for the export command.

func NewExportArgs

func NewExportArgs(args *RootArgs) *ExportArgs

NewExportArgs creates a new ExportArgs.

func (*ExportArgs) GetMode

func (a *ExportArgs) GetMode() string

func (*ExportArgs) GetOutput

func (a *ExportArgs) GetOutput() string

func (*ExportArgs) GetSchema

func (a *ExportArgs) GetSchema() string

type RootArgs

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

func NewRootArgs

func NewRootArgs() *RootArgs

func (*RootArgs) GetBlockProfile

func (a *RootArgs) GetBlockProfile() string

func (*RootArgs) GetBlockProfileRate

func (a *RootArgs) GetBlockProfileRate() int

func (*RootArgs) GetCPUProfile

func (a *RootArgs) GetCPUProfile() string

func (*RootArgs) GetHeapProfile

func (a *RootArgs) GetHeapProfile() string

func (*RootArgs) GetHeapProfileRate

func (a *RootArgs) GetHeapProfileRate() int

func (*RootArgs) GetLogFormat

func (a *RootArgs) GetLogFormat() string

func (*RootArgs) GetLogLevel

func (a *RootArgs) GetLogLevel() string

func (*RootArgs) GetMemProfile

func (a *RootArgs) GetMemProfile() string

func (*RootArgs) GetMemProfileRate

func (a *RootArgs) GetMemProfileRate() int

func (*RootArgs) GetMutexProfile

func (a *RootArgs) GetMutexProfile() string

func (*RootArgs) GetMutexProfileRate

func (a *RootArgs) GetMutexProfileRate() int

Jump to

Keyboard shortcuts

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