Documentation
¶
Index ¶
- Variables
- func NewContextCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewCreateCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDeleteCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewListCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewOptionsCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewSetOptionsCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewUseCmd(flags *flags.GlobalFlags) *cobra.Command
- type ContextCleanupError
- type ContextWithDefault
- type CreateCmd
- type DeleteCmd
- type ListCmd
- type OptionsCmd
- type SetOptionsCmd
- type UseCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrContextCleanupIndeterminate = errors.New("context cleanup rollback incomplete")
)
Functions ¶
func NewContextCmd ¶
func NewContextCmd(flags *flags.GlobalFlags) *cobra.Command
NewContextCmd returns a new command.
func NewCreateCmd ¶
func NewCreateCmd(flags *flags.GlobalFlags) *cobra.Command
NewCreateCmd creates a new command.
func NewDeleteCmd ¶
func NewDeleteCmd(flags *flags.GlobalFlags) *cobra.Command
NewDeleteCmd creates a new command.
func NewListCmd ¶
func NewListCmd(flags *flags.GlobalFlags) *cobra.Command
NewListCmd creates a new command.
func NewOptionsCmd ¶
func NewOptionsCmd(flags *flags.GlobalFlags) *cobra.Command
NewOptionsCmd creates a new command.
func NewSetOptionsCmd ¶
func NewSetOptionsCmd(flags *flags.GlobalFlags) *cobra.Command
NewSetOptionsCmd creates a new command.
Types ¶
type ContextCleanupError ¶ added in v1.20.0
type ContextCleanupError struct {
Context string
Phase string
Cause error
Rollback error
RecoveryPending bool
}
ContextCleanupError reports safe action metadata without backend/parser text, which may include a value. Causes remain available for errors.Is/errors.As.
func (*ContextCleanupError) Error ¶ added in v1.20.0
func (e *ContextCleanupError) Error() string
func (*ContextCleanupError) Unwrap ¶ added in v1.20.0
func (e *ContextCleanupError) Unwrap() []error
type ContextWithDefault ¶
type CreateCmd ¶
type CreateCmd struct {
*flags.GlobalFlags
Options []string
}
CreateCmd holds the create cmd flags.
type OptionsCmd ¶
type OptionsCmd struct {
*flags.GlobalFlags
}
OptionsCmd holds the options cmd flags.
type SetOptionsCmd ¶
type SetOptionsCmd struct {
*flags.GlobalFlags
Options []string
}
SetOptionsCmd holds the setOptions cmd flags.
Click to show internal directories.
Click to hide internal directories.