Documentation
¶
Overview ¶
Package command is a generated GoMock package.
Index ¶
- Constants
- func NewCleanCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
- func NewConnectCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
- func NewDashboardCommand(ktCli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) cli.Command
- func NewExchangeCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
- func NewMeshCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
- func NewProvideCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
- type Action
- func (action *Action) ApplyDashboard(cli kt.CliInterface, options *options.DaemonOptions) (err error)
- func (action *Action) Clean(cli kt.CliInterface, options *options.DaemonOptions) error
- func (action *Action) Connect(cli kt.CliInterface, options *options.DaemonOptions) error
- func (action *Action) Exchange(resourceName string, cli kt.CliInterface, options *options.DaemonOptions) error
- func (action *Action) Mesh(resourceName string, cli kt.CliInterface, options *options.DaemonOptions) error
- func (action *Action) OpenDashboard(ktCli kt.CliInterface, options *options.DaemonOptions) (err error)
- func (action *Action) Provide(serviceName string, cli kt.CliInterface, options *options.DaemonOptions) error
- type ActionInterface
- type MockActionInterface
- func (m *MockActionInterface) ApplyDashboard(cli kt.CliInterface, options *options.DaemonOptions) error
- func (m *MockActionInterface) Clean(cli kt.CliInterface, options *options.DaemonOptions) error
- func (m *MockActionInterface) Connect(cli kt.CliInterface, options *options.DaemonOptions) error
- func (m *MockActionInterface) EXPECT() *MockActionInterfaceMockRecorder
- func (m *MockActionInterface) Exchange(resourceName string, cli kt.CliInterface, options *options.DaemonOptions) error
- func (m *MockActionInterface) Mesh(deploymentName string, cli kt.CliInterface, options *options.DaemonOptions) error
- func (m *MockActionInterface) OpenDashboard(cli kt.CliInterface, options *options.DaemonOptions) error
- func (m *MockActionInterface) Provide(serviceName string, cli kt.CliInterface, options *options.DaemonOptions) error
- type MockActionInterfaceMockRecorder
- func (mr *MockActionInterfaceMockRecorder) ApplyDashboard(cli, options interface{}) *gomock.Call
- func (mr *MockActionInterfaceMockRecorder) Clean(cli, options interface{}) *gomock.Call
- func (mr *MockActionInterfaceMockRecorder) Connect(cli, options interface{}) *gomock.Call
- func (mr *MockActionInterfaceMockRecorder) Exchange(resourceName, cli, options interface{}) *gomock.Call
- func (mr *MockActionInterfaceMockRecorder) Mesh(deploymentName, cli, options interface{}) *gomock.Call
- func (mr *MockActionInterfaceMockRecorder) OpenDashboard(cli, options interface{}) *gomock.Call
- func (mr *MockActionInterfaceMockRecorder) Provide(serviceName, cli, options interface{}) *gomock.Call
- type ResourceToClean
Constants ¶
const SecondsOf10Mins = 10 * 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 NewDashboardCommand ¶ added in v0.2.3
func NewDashboardCommand(ktCli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) cli.Command
NewDashboardCommand dashboard 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 NewProvideCommand ¶ added in v0.2.3
func NewProvideCommand(cli kt.CliInterface, options *options.DaemonOptions, action ActionInterface) urfave.Command
NewProvideCommand return new provide command
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) 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) 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
Provide(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
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) Clean ¶ added in v0.1.0
func (m *MockActionInterface) Clean(cli kt.CliInterface, options *options.DaemonOptions) error
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
func (m *MockActionInterface) EXPECT() *MockActionInterfaceMockRecorder
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) 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) 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) 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.