platform

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 DeletePlatformCmd

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

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

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

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

func (lp *ListPlatformsCmd) Run() error

Run runs the command's logic

func (*ListPlatformsCmd) SetOutputFormat

func (lp *ListPlatformsCmd) SetOutputFormat(format output.Format)

SetOutputFormat set output format

type RegisterPlatformCmd

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

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

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

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

Jump to

Keyboard shortcuts

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