Documentation
¶
Index ¶
- Variables
- func GetVersionString() string
- func NewChartAddCmd(args *ChartArgs) *cobra.Command
- func NewChartCmd(arg *RootArgs) *cobra.Command
- func NewChartInitCmd(args *ChartArgs) *cobra.Command
- func NewChartRepoAddCmd(args *ChartArgs) *cobra.Command
- func NewChartRepoCmd(args *ChartArgs) *cobra.Command
- func NewChartSetCmd(args *ChartArgs) *cobra.Command
- func NewChartUpdateCmd(args *ChartArgs) *cobra.Command
- func NewExportCmd(arg *RootArgs) *cobra.Command
- func NewRootCmd(name, shortDesc, longDesc string) *cobra.Command
- func NewVersionCmd() *cobra.Command
- func RegisterEnabledPlugins()
- type ChartArgs
- type ExportArgs
- type RootArgs
- func (a *RootArgs) GetBlockProfile() string
- func (a *RootArgs) GetBlockProfileRate() int
- func (a *RootArgs) GetCPUProfile() string
- func (a *RootArgs) GetHeapProfile() string
- func (a *RootArgs) GetHeapProfileRate() int
- func (a *RootArgs) GetLogFormat() string
- func (a *RootArgs) GetLogLevel() string
- func (a *RootArgs) GetMemProfile() string
- func (a *RootArgs) GetMemProfileRate() int
- func (a *RootArgs) GetMutexProfile() string
- func (a *RootArgs) GetMutexProfileRate() int
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 NewChartCmd ¶
NewChartCmd returns the chart command.
func NewChartInitCmd ¶
func NewChartRepoAddCmd ¶
func NewChartRepoCmd ¶
func NewChartSetCmd ¶
func NewChartUpdateCmd ¶
func NewExportCmd ¶
NewExportCmd returns the export command.
func NewRootCmd ¶
func RegisterEnabledPlugins ¶
func RegisterEnabledPlugins()
Types ¶
type ChartArgs ¶
type ChartArgs struct {
*RootArgs
// contains filtered or unexported fields
}
func NewChartArgs ¶
func (*ChartArgs) GetMaxExtractSize ¶
func (*ChartArgs) GetTimeout ¶
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 (*RootArgs) GetBlockProfileRate ¶
func (*RootArgs) GetCPUProfile ¶
func (*RootArgs) GetHeapProfile ¶
func (*RootArgs) GetHeapProfileRate ¶
func (*RootArgs) GetLogFormat ¶
func (*RootArgs) GetLogLevel ¶
func (*RootArgs) GetMemProfile ¶
func (*RootArgs) GetMemProfileRate ¶
func (*RootArgs) GetMutexProfile ¶
func (*RootArgs) GetMutexProfileRate ¶
Click to show internal directories.
Click to hide internal directories.