command

package
v0.0.13-rc11-z5nctl3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package command is a generated GoMock package.

Index

Constants

View Source
const ComponentMesh = "mesh"

ComponentMesh mesh component

View Source
const KubernetesTool = "kt"

KubernetesTool kt sign

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

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

ConnectActionFlag ...

func NewCheckCommand

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

NewCheckCommand return new check command

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 handeler

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 kt connect

func (*Action) Connect

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

Connect connect vpn to kubernetes cluster

func (*Action) Exchange

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

Exchange exchange kubernetes workload

func (*Action) Mesh

func (action *Action) Mesh(mesh 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) Run

func (action *Action) Run(service string, cli kt.CliInterface, options *options.DaemonOptions) error

Run 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
	Run(service string, cli kt.CliInterface, options *options.DaemonOptions) error
	Exchange(service string, cli kt.CliInterface, options *options.DaemonOptions) error
	Mesh(service string, cli kt.CliInterface, options *options.DaemonOptions) error
	ApplyDashboard(cli kt.CliInterface, options *options.DaemonOptions) error
}

ActionInterface all action defined

type MockActionInterface

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

MockActionInterface is a mock of ActionInterface interface

func NewMockActionInterface

func NewMockActionInterface(ctrl *gomock.Controller) *MockActionInterface

NewMockActionInterface creates a new mock instance

func (*MockActionInterface) ApplyDashboard

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

ApplyDashboard mocks base method

func (*MockActionInterface) Check

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

Check mocks base method

func (*MockActionInterface) Connect

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

Connect mocks base method

func (*MockActionInterface) EXPECT

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

func (*MockActionInterface) Exchange

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

Exchange mocks base method

func (*MockActionInterface) Mesh

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

Mesh mocks base method

func (*MockActionInterface) OpenDashboard

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

OpenDashboard mocks base method

func (*MockActionInterface) Run

func (m *MockActionInterface) Run(service string, cli kt.CliInterface, options *options.DaemonOptions) error

Run mocks base method

type MockActionInterfaceMockRecorder

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

MockActionInterfaceMockRecorder is the mock recorder for MockActionInterface

func (*MockActionInterfaceMockRecorder) ApplyDashboard

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

ApplyDashboard indicates an expected call of ApplyDashboard

func (*MockActionInterfaceMockRecorder) Check

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

Check indicates an expected call of Check

func (*MockActionInterfaceMockRecorder) Connect

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

Connect indicates an expected call of Connect

func (*MockActionInterfaceMockRecorder) Exchange

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

Exchange indicates an expected call of Exchange

func (*MockActionInterfaceMockRecorder) Mesh

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

Mesh indicates an expected call of Mesh

func (*MockActionInterfaceMockRecorder) OpenDashboard

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

OpenDashboard indicates an expected call of OpenDashboard

func (*MockActionInterfaceMockRecorder) Run

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

Run indicates an expected call of Run

Jump to

Keyboard shortcuts

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