broker

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteBrokerCmd

type DeleteBrokerCmd struct {
	*cmd.Context
	// contains filtered or unexported fields
}

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) Run

func (dbc *DeleteBrokerCmd) Run() error

Run runs the command's logic

func (*DeleteBrokerCmd) Validate

func (dbc *DeleteBrokerCmd) Validate(args []string) error

Validate validates command's arguments

type GetBrokerCmd added in v1.8.0

type GetBrokerCmd struct {
	*cmd.Context
	// contains filtered or unexported fields
}

GetBrokerCmd wraps the smctl list-brokers command

func NewGetBrokerCmd added in v1.8.0

func NewGetBrokerCmd(context *cmd.Context) *GetBrokerCmd

NewGetBrokerCmd returns new get status command with context

func (*GetBrokerCmd) HideUsage added in v1.8.0

func (gb *GetBrokerCmd) HideUsage() bool

HideUsage hide command's usage

func (*GetBrokerCmd) Prepare added in v1.8.0

func (gb *GetBrokerCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*GetBrokerCmd) Run added in v1.8.0

func (gb *GetBrokerCmd) Run() error

Run runs the command's logic

func (*GetBrokerCmd) SetOutputFormat added in v1.8.0

func (gb *GetBrokerCmd) SetOutputFormat(format output.Format)

SetOutputFormat set output format

func (*GetBrokerCmd) Validate added in v1.8.0

func (gb *GetBrokerCmd) Validate(args []string) error

Validate validates command's arguments

type ListBrokersCmd

type ListBrokersCmd struct {
	*cmd.Context
	// contains filtered or unexported fields
}

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) Run

func (lb *ListBrokersCmd) Run() error

Run runs the command's logic

func (*ListBrokersCmd) SetOutputFormat

func (lb *ListBrokersCmd) SetOutputFormat(format output.Format)

SetOutputFormat set output format

type RegisterBrokerCmd

type RegisterBrokerCmd struct {
	*cmd.Context
	// contains filtered or unexported fields
}

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

type UpdateBrokerCmd struct {
	*cmd.Context
	// contains filtered or unexported fields
}

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) Run

func (ubc *UpdateBrokerCmd) Run() error

Run runs the command's logic

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL