deletion

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDelete

func NewCmdDelete() *cobra.Command

NewCmdDelete returns a cobra.Command to run the delete command.

func NewCmdDeletePeer

func NewCmdDeletePeer() *cobra.Command

NewCmdDeletePeer returns a cobra.Command to run the 'delete peer' subcommand.

Types

type PeerOptions

type PeerOptions struct {
	// Name of the peer to delete.
	Name string
	// Namespace where the ClusterLink components and secrets are deployed.
	Namespace string
}

PeerOptions contains everything necessary to create and run a 'delete peer' subcommand.

func (*PeerOptions) AddFlags

func (o *PeerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to fs and binds them to options.

func (*PeerOptions) RequiredFlags

func (o *PeerOptions) RequiredFlags() []string

RequiredFlags are the names of flags that must be explicitly specified.

func (*PeerOptions) Run

func (o *PeerOptions) Run() error

Run the 'delete peer' subcommand.

Jump to

Keyboard shortcuts

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