visibility

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteVisibilityCmd

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

DeleteVisibilityCmd wraps the smctl delete-visibility command

func NewDeleteVisibilityCmd

func NewDeleteVisibilityCmd(context *cmd.Context, input io.Reader) *DeleteVisibilityCmd

NewDeleteVisibilityCmd returns new delete-visibility command with context

func (*DeleteVisibilityCmd) AskForConfirmation

func (dv *DeleteVisibilityCmd) AskForConfirmation() (bool, error)

AskForConfirmation asks the user to confirm deletion

func (*DeleteVisibilityCmd) HideUsage

func (dv *DeleteVisibilityCmd) HideUsage() bool

HideUsage hide command's usage

func (*DeleteVisibilityCmd) Prepare

func (dv *DeleteVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*DeleteVisibilityCmd) PrintDeclineMessage

func (dv *DeleteVisibilityCmd) PrintDeclineMessage()

PrintDeclineMessage prints confirmation decline message to the user

func (*DeleteVisibilityCmd) Run

func (dv *DeleteVisibilityCmd) Run() error

Run runs the command's logic

func (*DeleteVisibilityCmd) Validate

func (dv *DeleteVisibilityCmd) Validate(args []string) error

Validate validates command's arguments

type ListVisibilitiesCmd

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

ListVisibilitiesCmd wraps the smctl list-visibilities command

func NewListVisibilitiesCmd

func NewListVisibilitiesCmd(context *cmd.Context) *ListVisibilitiesCmd

NewListVisibilitiesCmd returns new list-visibilities command with context

func (*ListVisibilitiesCmd) HideUsage

func (lv *ListVisibilitiesCmd) HideUsage() bool

HideUsage hides command's usage

func (*ListVisibilitiesCmd) Prepare

func (lv *ListVisibilitiesCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*ListVisibilitiesCmd) Run

func (lv *ListVisibilitiesCmd) Run() error

Run runs the command's logic

func (*ListVisibilitiesCmd) SetOutputFormat

func (lv *ListVisibilitiesCmd) SetOutputFormat(format output.Format)

SetOutputFormat sets output format

type RegisterVisibilityCmd

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

RegisterVisibilityCmd wraps the smctl register-visibility command

func NewRegisterVisibilityCmd

func NewRegisterVisibilityCmd(ctx *cmd.Context) *RegisterVisibilityCmd

NewRegisterVisibilityCmd returns new smctl register-visibility command with context

func (*RegisterVisibilityCmd) HideUsage

func (rv *RegisterVisibilityCmd) HideUsage() bool

HideUsage hide command's usage

func (*RegisterVisibilityCmd) Prepare

func (rv *RegisterVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*RegisterVisibilityCmd) Run

func (rv *RegisterVisibilityCmd) Run() error

Run runs command's logic

func (*RegisterVisibilityCmd) SetOutputFormat

func (rv *RegisterVisibilityCmd) SetOutputFormat(format output.Format)

SetOutputFormat sets command's output format

func (*RegisterVisibilityCmd) Validate

func (rv *RegisterVisibilityCmd) Validate(args []string) error

Validate validates command's arguments

type UpdateVisibilityCmd

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

UpdateVisibilityCmd wraps smctl update-visibility command

func NewUpdateVisibilityCmd

func NewUpdateVisibilityCmd(context *cmd.Context) *UpdateVisibilityCmd

NewUpdateVisibilityCmd returns new smctl update-visibility command with context

func (*UpdateVisibilityCmd) HideUsage

func (uv *UpdateVisibilityCmd) HideUsage() bool

HideUsage hide command's usage

func (*UpdateVisibilityCmd) Prepare

func (uv *UpdateVisibilityCmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*UpdateVisibilityCmd) Run

func (uv *UpdateVisibilityCmd) Run() error

Run runs the command's logic

func (*UpdateVisibilityCmd) SetOutputFormat

func (uv *UpdateVisibilityCmd) SetOutputFormat(format output.Format)

SetOutputFormat set output format

func (*UpdateVisibilityCmd) Validate

func (uv *UpdateVisibilityCmd) 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