command

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: GPL-3.0 Imports: 21 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) urfave.Command

NewCleanCommand return new connect command

func NewConnectCommand added in v0.2.3

func NewConnectCommand(action ActionInterface, ch chan os.Signal) urfave.Command

NewConnectCommand return new connect command

func NewExchangeCommand added in v0.2.3

func NewExchangeCommand(action ActionInterface, ch chan os.Signal) urfave.Command

NewExchangeCommand return new exchange command

func NewMeshCommand added in v0.2.3

func NewMeshCommand(action ActionInterface, ch chan os.Signal) urfave.Command

NewMeshCommand return new mesh command

func NewPreviewCommand added in v0.3.0

func NewPreviewCommand(action ActionInterface, ch chan os.Signal) urfave.Command

NewPreviewCommand return new preview 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(ch chan os.Signal) error

Connect setup vpn to kubernetes cluster

func (*Action) Exchange

func (action *Action) Exchange(resourceName string, ch chan os.Signal) error

Exchange exchange kubernetes workload

func (*Action) Mesh

func (action *Action) Mesh(resourceName string, ch chan os.Signal) error

Mesh exchange kubernetes workload

func (*Action) Preview added in v0.3.0

func (action *Action) Preview(serviceName string, ch chan os.Signal) error

Preview create a new service in cluster

type ActionInterface

type ActionInterface interface {
	Connect(ch chan os.Signal) error
	Preview(serviceName string, ch chan os.Signal) error
	Exchange(resourceName string, ch chan os.Signal) error
	Mesh(deploymentName string, ch chan os.Signal) error
	Clean() error
}

ActionInterface all action defined

type ResourceToClean added in v0.1.0

type ResourceToClean struct {
	PodsToDelete       []string
	ServicesToDelete   []string
	ConfigMapsToDelete []string
	DeploymentsToScale map[string]int32
	ServicesToRecover  []string
	ServicesToUnlock   []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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