command

package
v0.3.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package command is a generated GoMock package.

Index

Constants

View Source
const SecondsOfFiveMinutes = 5 * 60

Variables

This section is empty.

Functions

func NewCleanCommand added in v0.2.3

func NewCleanCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command

NewCleanCommand return new connect command

func NewConnectCommand added in v0.2.3

func NewConnectCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command

NewConnectCommand return new connect command

func NewExchangeCommand added in v0.2.3

func NewExchangeCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command

NewExchangeCommand return new exchange command

func NewMeshCommand added in v0.2.3

func NewMeshCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command

NewMeshCommand return new mesh command

func NewPreviewCommand added in v0.3.0

func NewPreviewCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command

NewPreviewCommand return new preview command

Types

type Action

type Action struct {
	Options *options.DaemonOptions
}

Action cmd action

func (*Action) Clean added in v0.1.0

func (action *Action) Clean(cli kt.CliInterface, options *options.DaemonOptions) error

Clean delete unavailing shadow pods

func (*Action) Connect

func (action *Action) Connect(cli kt.CliInterface, options *options.DaemonOptions) error

Connect connect vpn to kubernetes cluster

func (*Action) Exchange

func (action *Action) Exchange(resourceName string, cli kt.CliInterface, options *options.DaemonOptions) error

Exchange exchange kubernetes workload

func (*Action) Mesh

func (action *Action) Mesh(resourceName string, cli kt.CliInterface, options *options.DaemonOptions) error

Mesh exchange kubernetes workload

func (*Action) Preview added in v0.3.0

func (action *Action) Preview(serviceName string, cli kt.CliInterface, options *options.DaemonOptions) error

Preview create a new service in cluster

type ActionInterface

type ActionInterface interface {
	Connect(cli kt.CliInterface, options *options.DaemonOptions) error
	Preview(serviceName string, cli kt.CliInterface, options *options.DaemonOptions) error
	Exchange(resourceName string, cli kt.CliInterface, options *options.DaemonOptions) error
	Mesh(deploymentName string, cli kt.CliInterface, options *options.DaemonOptions) error
	Clean(cli kt.CliInterface, options *options.DaemonOptions) error
}

ActionInterface all action defined

type MockActionInterface added in v0.1.0

type MockActionInterface struct {
	// contains filtered or unexported fields
}

MockActionInterface is a mock of ActionInterface interface.

func NewMockActionInterface added in v0.1.0

func NewMockActionInterface(ctrl *gomock.Controller) *MockActionInterface

NewMockActionInterface creates a new mock instance.

func (*MockActionInterface) Clean added in v0.1.0

Clean mocks base method.

func (*MockActionInterface) Connect added in v0.1.0

func (m *MockActionInterface) Connect(cli kt.CliInterface, options *options.DaemonOptions) error

Connect mocks base method.

func (*MockActionInterface) EXPECT added in v0.1.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockActionInterface) Exchange added in v0.1.0

func (m *MockActionInterface) Exchange(resourceName string, cli kt.CliInterface, options *options.DaemonOptions) error

Exchange mocks base method.

func (*MockActionInterface) Mesh added in v0.1.0

func (m *MockActionInterface) Mesh(deploymentName string, cli kt.CliInterface, options *options.DaemonOptions) error

Mesh mocks base method.

func (*MockActionInterface) Preview

func (m *MockActionInterface) Preview(serviceName string, cli kt.CliInterface, options *options.DaemonOptions) error

Preview mocks base method.

type MockActionInterfaceMockRecorder added in v0.1.0

type MockActionInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockActionInterfaceMockRecorder is the mock recorder for MockActionInterface.

func (*MockActionInterfaceMockRecorder) Clean added in v0.1.0

func (mr *MockActionInterfaceMockRecorder) Clean(cli, options interface{}) *gomock.Call

Clean indicates an expected call of Clean.

func (*MockActionInterfaceMockRecorder) Connect added in v0.1.0

func (mr *MockActionInterfaceMockRecorder) Connect(cli, options interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockActionInterfaceMockRecorder) Exchange added in v0.1.0

func (mr *MockActionInterfaceMockRecorder) Exchange(resourceName, cli, options interface{}) *gomock.Call

Exchange indicates an expected call of Exchange.

func (*MockActionInterfaceMockRecorder) Mesh added in v0.1.0

func (mr *MockActionInterfaceMockRecorder) Mesh(deploymentName, cli, options interface{}) *gomock.Call

Mesh indicates an expected call of Mesh.

func (*MockActionInterfaceMockRecorder) Preview

func (mr *MockActionInterfaceMockRecorder) Preview(serviceName, cli, options interface{}) *gomock.Call

Preview indicates an expected call of Preview.

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