command

package
v0.3.5-beta1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCleanCommand added in v0.2.3

func NewCleanCommand(action ActionInterface) *cobra.Command

NewCleanCommand return new connect command

func NewConnectCommand added in v0.2.3

func NewConnectCommand(action ActionInterface) *cobra.Command

NewConnectCommand return new connect command

func NewExchangeCommand added in v0.2.3

func NewExchangeCommand(action ActionInterface) *cobra.Command

NewExchangeCommand return new exchange command

func NewMeshCommand added in v0.2.3

func NewMeshCommand(action ActionInterface) *cobra.Command

NewMeshCommand return new mesh command

func NewPreviewCommand added in v0.3.0

func NewPreviewCommand(action ActionInterface) *cobra.Command

NewPreviewCommand return new preview command

func NewRecoverCommand added in v0.3.2

func NewRecoverCommand(action ActionInterface) *cobra.Command

NewRecoverCommand return new recover command

Types

type Action

type Action struct{}

Action cmd action

func (*Action) Clean added in v0.1.0

func (action *Action) Clean() error

Clean delete unavailing shadow pods

func (*Action) Connect

func (action *Action) Connect() error

Connect setup vpn to kubernetes cluster

func (*Action) Exchange

func (action *Action) Exchange(resourceName string) error

Exchange exchange kubernetes workload

func (*Action) Mesh

func (action *Action) Mesh(resourceName string) error

Mesh exchange kubernetes workload

func (*Action) Preview added in v0.3.0

func (action *Action) Preview(serviceName string) error

Preview create a new service in cluster

func (*Action) Recover added in v0.3.2

func (action *Action) Recover(serviceName string) error

Recover delete unavailing shadow pods

type ActionInterface

type ActionInterface interface {
	Connect() error
	Preview(serviceName string) error
	Exchange(resourceName string) error
	Mesh(resourceName string) error
	Recover(serviceName string) error
	Clean() error
}

ActionInterface all action defined

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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