Documentation ¶
Index ¶
- type DeleteBrokerCmd
- func (dbc *DeleteBrokerCmd) AskForConfirmation() (bool, error)
- func (dbc *DeleteBrokerCmd) HideUsage() bool
- func (dbc *DeleteBrokerCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
- func (dbc *DeleteBrokerCmd) PrintDeclineMessage()
- func (dbc *DeleteBrokerCmd) Run() error
- func (dbc *DeleteBrokerCmd) Validate(args []string) error
- type ListBrokersCmd
- type RegisterBrokerCmd
- type UpdateBrokerCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteBrokerCmd ¶
DeleteBrokerCmd wraps the smctl delete-broker command
func NewDeleteBrokerCmd ¶
func NewDeleteBrokerCmd(context *cmd.Context, input io.Reader) *DeleteBrokerCmd
NewDeleteBrokerCmd returns new delete-broker command with context
func (*DeleteBrokerCmd) AskForConfirmation ¶ added in v1.5.0
func (dbc *DeleteBrokerCmd) AskForConfirmation() (bool, error)
AskForConfirmation asks the user to confirm deletion
func (*DeleteBrokerCmd) HideUsage ¶
func (dbc *DeleteBrokerCmd) HideUsage() bool
HideUsage hide command's usage
func (*DeleteBrokerCmd) Prepare ¶
func (dbc *DeleteBrokerCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*DeleteBrokerCmd) PrintDeclineMessage ¶ added in v1.5.0
func (dbc *DeleteBrokerCmd) PrintDeclineMessage()
PrintDeclineMessage prints confirmation decline message to the user
func (*DeleteBrokerCmd) Validate ¶
func (dbc *DeleteBrokerCmd) Validate(args []string) error
Validate validates command's arguments
type ListBrokersCmd ¶
ListBrokersCmd wraps the smctl list-brokers command
func NewListBrokersCmd ¶
func NewListBrokersCmd(context *cmd.Context) *ListBrokersCmd
NewListBrokersCmd returns new list-brokers command with context
func (*ListBrokersCmd) HideUsage ¶
func (lb *ListBrokersCmd) HideUsage() bool
HideUsage hide command's usage
func (*ListBrokersCmd) Prepare ¶
func (lb *ListBrokersCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*ListBrokersCmd) SetOutputFormat ¶
func (lb *ListBrokersCmd) SetOutputFormat(format output.Format)
SetOutputFormat set output format
type RegisterBrokerCmd ¶
RegisterBrokerCmd wraps the smctl register-broker command
func NewRegisterBrokerCmd ¶
func NewRegisterBrokerCmd(context *cmd.Context) *RegisterBrokerCmd
NewRegisterBrokerCmd returns new register-broker command with context
func (*RegisterBrokerCmd) HideUsage ¶
func (rbc *RegisterBrokerCmd) HideUsage() bool
HideUsage hide command's usage
func (*RegisterBrokerCmd) Prepare ¶
func (rbc *RegisterBrokerCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*RegisterBrokerCmd) Run ¶
func (rbc *RegisterBrokerCmd) Run() error
Run runs the command's logic
func (*RegisterBrokerCmd) SetOutputFormat ¶
func (rbc *RegisterBrokerCmd) SetOutputFormat(format output.Format)
SetOutputFormat set output format
func (*RegisterBrokerCmd) Validate ¶
func (rbc *RegisterBrokerCmd) Validate(args []string) error
Validate validates command's arguments
type UpdateBrokerCmd ¶
UpdateBrokerCmd wraps the smctl update-broker command
func NewUpdateBrokerCmd ¶
func NewUpdateBrokerCmd(context *cmd.Context) *UpdateBrokerCmd
NewUpdateBrokerCmd returns new update-broker command with context
func (*UpdateBrokerCmd) HideUsage ¶
func (ubc *UpdateBrokerCmd) HideUsage() bool
HideUsage hide command's usage
func (*UpdateBrokerCmd) Prepare ¶
func (ubc *UpdateBrokerCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command
Prepare returns cobra command
func (*UpdateBrokerCmd) SetOutputFormat ¶
func (ubc *UpdateBrokerCmd) SetOutputFormat(format output.Format)
SetOutputFormat set output format
func (*UpdateBrokerCmd) Validate ¶
func (ubc *UpdateBrokerCmd) Validate(args []string) error
Validate validates command's arguments