Documentation
¶
Index ¶
- type DeletePlatformCmd
- func (dpc *DeletePlatformCmd) AskForConfirmation() (bool, error)
- func (dpc *DeletePlatformCmd) HideUsage() bool
- func (dpc *DeletePlatformCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
- func (dpc *DeletePlatformCmd) PrintDeclineMessage()
- func (dpc *DeletePlatformCmd) Run() error
- func (dpc *DeletePlatformCmd) Validate(args []string) error
- type ListPlatformsCmd
- type RegisterPlatformCmd
- func (rpc *RegisterPlatformCmd) HideUsage() bool
- func (rpc *RegisterPlatformCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
- func (rpc *RegisterPlatformCmd) Run() error
- func (rpc *RegisterPlatformCmd) SetOutputFormat(format output.Format)
- func (rpc *RegisterPlatformCmd) Validate(args []string) error
- type UpdatePlatformCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletePlatformCmd ¶
DeletePlatformCmd wraps the smctl delete-platform command
func NewDeletePlatformCmd ¶
func NewDeletePlatformCmd(context *cmd.Context, input io.Reader) *DeletePlatformCmd
NewDeletePlatformCmd returns new delete-platform command with context
func (*DeletePlatformCmd) AskForConfirmation ¶ added in v1.5.0
func (dpc *DeletePlatformCmd) AskForConfirmation() (bool, error)
AskForConfirmation asks the user to confirm deletion
func (*DeletePlatformCmd) HideUsage ¶
func (dpc *DeletePlatformCmd) HideUsage() bool
HideUsage hide command's usage
func (*DeletePlatformCmd) Prepare ¶
func (dpc *DeletePlatformCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*DeletePlatformCmd) PrintDeclineMessage ¶ added in v1.5.0
func (dpc *DeletePlatformCmd) PrintDeclineMessage()
PrintDeclineMessage prints confirmation decline message to the user
func (*DeletePlatformCmd) Run ¶
func (dpc *DeletePlatformCmd) Run() error
Run runs the command's logic
func (*DeletePlatformCmd) Validate ¶
func (dpc *DeletePlatformCmd) Validate(args []string) error
Validate validates command's arguments
type ListPlatformsCmd ¶
ListPlatformsCmd wraps the smctl list-brokers command
func NewListPlatformsCmd ¶
func NewListPlatformsCmd(context *cmd.Context) *ListPlatformsCmd
NewListPlatformsCmd returns new list-brokers command with context
func (*ListPlatformsCmd) HideUsage ¶
func (lp *ListPlatformsCmd) HideUsage() bool
HideUsage hide command's usage
func (*ListPlatformsCmd) Prepare ¶
func (lp *ListPlatformsCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*ListPlatformsCmd) SetOutputFormat ¶
func (lp *ListPlatformsCmd) SetOutputFormat(format output.Format)
SetOutputFormat set output format
type RegisterPlatformCmd ¶
RegisterPlatformCmd wraps the smctl register-platform command
func NewRegisterPlatformCmd ¶
func NewRegisterPlatformCmd(context *cmd.Context) *RegisterPlatformCmd
NewRegisterPlatformCmd returns new register-platform command with context
func (*RegisterPlatformCmd) HideUsage ¶
func (rpc *RegisterPlatformCmd) HideUsage() bool
HideUsage hide command's usage
func (*RegisterPlatformCmd) Prepare ¶
func (rpc *RegisterPlatformCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*RegisterPlatformCmd) Run ¶
func (rpc *RegisterPlatformCmd) Run() error
Run runs command's logic
func (*RegisterPlatformCmd) SetOutputFormat ¶
func (rpc *RegisterPlatformCmd) SetOutputFormat(format output.Format)
SetOutputFormat set command's output format
func (*RegisterPlatformCmd) Validate ¶
func (rpc *RegisterPlatformCmd) Validate(args []string) error
Validate validates command's arguments
type UpdatePlatformCmd ¶
UpdatePlatformCmd wraps the smctl update-platform command
func NewUpdatePlatformCmd ¶
func NewUpdatePlatformCmd(context *cmd.Context) *UpdatePlatformCmd
NewUpdatePlatformCmd returns new update-platform command with context
func (*UpdatePlatformCmd) HideUsage ¶
func (upc *UpdatePlatformCmd) HideUsage() bool
HideUsage hide command's usage
func (*UpdatePlatformCmd) Prepare ¶
func (upc *UpdatePlatformCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*UpdatePlatformCmd) Run ¶
func (upc *UpdatePlatformCmd) Run() error
Run runs the command's logic
func (*UpdatePlatformCmd) SetOutputFormat ¶
func (upc *UpdatePlatformCmd) SetOutputFormat(format output.Format)
SetOutputFormat set output format
func (*UpdatePlatformCmd) Validate ¶
func (upc *UpdatePlatformCmd) Validate(args []string) error
Validate validates command's arguments