binding

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 BindCmd

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

BindCmd wraps the smctl bind command

func NewBindCmd

func NewBindCmd(context *cmd.Context) *BindCmd

NewBindCmd returns new bind command with context

func (*BindCmd) HideUsage

func (bc *BindCmd) HideUsage() bool

HideUsage hide command's usage

func (*BindCmd) Prepare

func (bc *BindCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*BindCmd) Run

func (bc *BindCmd) Run() error

Run runs the command's logic

func (*BindCmd) SetOutputFormat

func (bc *BindCmd) SetOutputFormat(format output.Format)

SetOutputFormat set output format

func (*BindCmd) Validate

func (bc *BindCmd) Validate(args []string) error

Validate validates command's arguments

type GetBindingCmd

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

GetBindingCmd wraps the smctl get-binding command

func NewGetBindingCmd

func NewGetBindingCmd(context *cmd.Context) *GetBindingCmd

NewGetBindingCmd returns new get status command with context

func (*GetBindingCmd) HideUsage

func (gb *GetBindingCmd) HideUsage() bool

HideUsage hide command's usage

func (*GetBindingCmd) Prepare

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

Prepare returns cobra command

func (*GetBindingCmd) Run

func (gb *GetBindingCmd) Run() error

Run runs the command's logic

func (*GetBindingCmd) SetOutputFormat

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

SetOutputFormat set output format

func (*GetBindingCmd) Validate

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

Validate validates command's arguments

type ListBindingsCmd

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

ListBindingsCmd wraps the smctl list-bindings command

func NewListBindingsCmd

func NewListBindingsCmd(context *cmd.Context) *ListBindingsCmd

NewListBindingsCmd returns new list-bindings command with context

func (*ListBindingsCmd) HideUsage

func (li *ListBindingsCmd) HideUsage() bool

HideUsage hides command's usage

func (*ListBindingsCmd) Prepare

func (li *ListBindingsCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*ListBindingsCmd) Run

func (li *ListBindingsCmd) Run() error

Run runs the command's logic

func (*ListBindingsCmd) SetOutputFormat

func (li *ListBindingsCmd) SetOutputFormat(format output.Format)

SetOutputFormat sets output format

type UnbindCmd

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

UnbindCmd wraps the smctl bind command

func NewUnbindCmd

func NewUnbindCmd(context *cmd.Context, input io.Reader) *UnbindCmd

NewUnbindCmd returns new bind command with context

func (*UnbindCmd) AskForConfirmation

func (ubc *UnbindCmd) AskForConfirmation() (bool, error)

AskForConfirmation asks the user to confirm deletion

func (*UnbindCmd) HideUsage

func (ubc *UnbindCmd) HideUsage() bool

HideUsage hide command's usage

func (*UnbindCmd) Prepare

func (ubc *UnbindCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*UnbindCmd) PrintDeclineMessage

func (ubc *UnbindCmd) PrintDeclineMessage()

PrintDeclineMessage prints confirmation decline message to the user

func (*UnbindCmd) Run

func (ubc *UnbindCmd) Run() error

Run runs the command's logic

func (*UnbindCmd) Validate

func (ubc *UnbindCmd) 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