Documentation ¶
Index ¶
- type Action
- type CommonOptions
- func (o *CommonOptions) AddCreateFlags(cobraCmd *cobra.Command, flags cmd.Flags) cmd.Flags
- func (o *CommonOptions) AddDeleteFlags(cobraCmd *cobra.Command, flags cmd.Flags) cmd.Flags
- func (o *CommonOptions) AddGetFlags(cobraCmd *cobra.Command, flags cmd.Flags) cmd.Flags
- func (o *CommonOptions) AddUpdateFlags(cobraCmd *cobra.Command, flags cmd.Flags) cmd.Flags
- func (o *CommonOptions) Common() *CommonOptions
- func (o *CommonOptions) NewClusterFlag(action Action, required bool) *cmd.StringFlag
- func (o *CommonOptions) NewDryRunFlag() *cmd.BoolFlag
- func (o *CommonOptions) NewNamespaceFlag(action Action) *cmd.StringFlag
- func (o *CommonOptions) PostCreate() error
- func (o *CommonOptions) PreCreate() error
- func (o *CommonOptions) PreDelete() error
- func (o *CommonOptions) SetName(name string)
- func (o *CommonOptions) TruncateUnique(max int, name string) string
- func (o *CommonOptions) Validate(args []string) error
- type EmptyInit
- type Getter
- type Manager
- type NotFoundByIDError
- type NotFoundByNameError
- type NotFoundError
- type Options
- type Resource
- func (r *Resource) Create() error
- func (r *Resource) Delete() error
- func (r *Resource) NewCreateCmd() *cobra.Command
- func (r *Resource) NewDeleteCmd() *cobra.Command
- func (r *Resource) NewGetCmd() *cobra.Command
- func (r *Resource) NewUpdateCmd() *cobra.Command
- func (r *Resource) Update(cmd *cobra.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
const Create Action = "create"
const Delete Action = "delete"
const Get Action = "get"
const Update Action = "update"
type CommonOptions ¶
type CommonOptions struct { Name string ClusterFlagDisabled bool ClusterFlagOptional bool DeleteArgumentOptional bool GetArgumentRequired bool KubeContext string NamespaceFlag bool Account string Cluster *types.Cluster ClusterName string DryRun bool Id string KubernetesVersion string Namespace string Partition string Region string ServiceAccount string }
func (*CommonOptions) AddCreateFlags ¶
func (*CommonOptions) AddDeleteFlags ¶
func (*CommonOptions) AddGetFlags ¶
func (*CommonOptions) AddUpdateFlags ¶
func (*CommonOptions) Common ¶
func (o *CommonOptions) Common() *CommonOptions
func (*CommonOptions) NewClusterFlag ¶
func (o *CommonOptions) NewClusterFlag(action Action, required bool) *cmd.StringFlag
func (*CommonOptions) NewDryRunFlag ¶
func (o *CommonOptions) NewDryRunFlag() *cmd.BoolFlag
func (*CommonOptions) NewNamespaceFlag ¶
func (o *CommonOptions) NewNamespaceFlag(action Action) *cmd.StringFlag
func (*CommonOptions) PostCreate ¶
func (o *CommonOptions) PostCreate() error
func (*CommonOptions) PreCreate ¶
func (o *CommonOptions) PreCreate() error
func (*CommonOptions) PreDelete ¶
func (o *CommonOptions) PreDelete() error
func (*CommonOptions) SetName ¶
func (o *CommonOptions) SetName(name string)
func (*CommonOptions) TruncateUnique ¶
func (o *CommonOptions) TruncateUnique(max int, name string) string
func (*CommonOptions) Validate ¶
func (o *CommonOptions) Validate(args []string) error
type NotFoundByIDError ¶ added in v0.10.0
func (*NotFoundByIDError) Error ¶ added in v0.10.0
func (e *NotFoundByIDError) Error() string
type NotFoundByNameError ¶ added in v0.10.0
func (*NotFoundByNameError) Error ¶ added in v0.10.0
func (e *NotFoundByNameError) Error() string
type NotFoundError ¶
type NotFoundError string
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type Options ¶
type Options interface { AddCreateFlags(*cobra.Command, cmd.Flags) cmd.Flags AddDeleteFlags(*cobra.Command, cmd.Flags) cmd.Flags AddGetFlags(*cobra.Command, cmd.Flags) cmd.Flags AddUpdateFlags(*cobra.Command, cmd.Flags) cmd.Flags Common() *CommonOptions PostCreate() error PreCreate() error PreDelete() error SetName(string) Validate(args []string) error }
Click to show internal directories.
Click to hide internal directories.