command

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Package command is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppFlags

func AppFlags(options *options.DaemonOptions, version string) []cli.Flag

AppFlags return app flags

func CleanupWorkspace

func CleanupWorkspace(cli kt.CliInterface, options *options.DaemonOptions)

CleanupWorkspace clean workspace

func ConnectActionFlag added in v0.1.0

func ConnectActionFlag(options *options.DaemonOptions) []cli.Flag

ConnectActionFlag ...

func NewCliAuthor

func NewCliAuthor() []cli.Author

NewCliAuthor return cli author

func NewCommands

func NewCommands(kt kt.CliInterface, action ActionInterface, options *options.DaemonOptions) []cli.Command

NewCommands return new Connect Action

func SetUpCloseHandler

func SetUpCloseHandler(cli kt.CliInterface, options *options.DaemonOptions, action string) (ch chan os.Signal)

SetUpCloseHandler registry close handler

func SetUpWaitingChannel

func SetUpWaitingChannel() (ch chan os.Signal)

SetUpWaitingChannel registry waiting channel

Types

type Action

type Action struct {
	Options *options.DaemonOptions
}

Action cmd action

func (*Action) ApplyDashboard

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

ApplyDashboard ...

func (*Action) Check

func (action *Action) Check(cli kt.CliInterface) (err error)

Check check local denpendency for KtConnect

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(deploymentName string, cli kt.CliInterface, options *options.DaemonOptions) error

Exchange exchange kubernetes workload

func (*Action) Mesh

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

Mesh exchange kubernetes workload

func (*Action) OpenDashboard

func (action *Action) OpenDashboard(ktCli kt.CliInterface, options *options.DaemonOptions) (err error)

OpenDashboard ...

func (*Action) Provide added in v0.1.0

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

Provide create a new service in cluster

type ActionInterface

type ActionInterface interface {
	OpenDashboard(cli kt.CliInterface, options *options.DaemonOptions) error
	Connect(cli kt.CliInterface, options *options.DaemonOptions) error
	Check(cli kt.CliInterface) error
	Provide(serviceName string, cli kt.CliInterface, options *options.DaemonOptions) error
	Exchange(deploymentName 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
	ApplyDashboard(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) ApplyDashboard added in v0.1.0

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

ApplyDashboard mocks base method.

func (*MockActionInterface) Check added in v0.1.0

func (m *MockActionInterface) Check(cli kt.CliInterface) error

Check mocks base method.

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(deploymentName 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) OpenDashboard added in v0.1.0

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

OpenDashboard mocks base method.

func (*MockActionInterface) Provide added in v0.1.0

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

Provide 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) ApplyDashboard added in v0.1.0

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

ApplyDashboard indicates an expected call of ApplyDashboard.

func (*MockActionInterfaceMockRecorder) Check added in v0.1.0

func (mr *MockActionInterfaceMockRecorder) Check(cli interface{}) *gomock.Call

Check indicates an expected call of Check.

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(deploymentName, 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) OpenDashboard added in v0.1.0

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

OpenDashboard indicates an expected call of OpenDashboard.

func (*MockActionInterfaceMockRecorder) Provide added in v0.1.0

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

Provide indicates an expected call of Provide.

type ResourceToClean added in v0.1.0

type ResourceToClean struct {
	NamesOfDeploymentToDelete *list.List
	NamesOfServiceToDelete    *list.List
	NamesOfConfigMapToDelete  *list.List
	DeploymentsToScale        map[string]int32
}

Jump to

Keyboard shortcuts

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