Documentation
¶
Overview ¶
Package exec is a generated GoMock package.
Index ¶
- type Cli
- type CliInterface
- type MockCliInterface
- func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
- func (m *MockCliInterface) Kubectl() kubectl.CliInterface
- func (m *MockCliInterface) SSH() ssh.CliInterface
- func (m *MockCliInterface) SshChannel() sshchannel.Channel
- func (m *MockCliInterface) Sshuttle() sshuttle.CliInterface
- func (m *MockCliInterface) Tunnel() tun.CliInterface
- type MockCliInterfaceMockRecorder
- func (mr *MockCliInterfaceMockRecorder) Kubectl() *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) SSH() *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) SshChannel() *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) Sshuttle() *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) Tunnel() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶ added in v0.1.0
type Cli struct {
KubeOptions []string
TunName string
SourceIP string
DestIP string
// MaskLen the net mask length of tun cidr
MaskLen string
}
Cli ...
func (*Cli) SshChannel ¶ added in v0.1.0
func (c *Cli) SshChannel() sshchannel.Channel
SshChannel ...
type CliInterface ¶ added in v0.1.0
type CliInterface interface {
Kubectl() kubectl.CliInterface
Sshuttle() sshuttle.CliInterface
SSH() ssh.CliInterface
Tunnel() tun.CliInterface
SshChannel() sshchannel.Channel
}
CliInterface ...
type MockCliInterface ¶ added in v0.1.0
type MockCliInterface struct {
// contains filtered or unexported fields
}
MockCliInterface is a mock of CliInterface interface.
func NewMockCliInterface ¶ added in v0.1.0
func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface
NewMockCliInterface creates a new mock instance.
func (*MockCliInterface) EXPECT ¶ added in v0.1.0
func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCliInterface) Kubectl ¶ added in v0.1.0
func (m *MockCliInterface) Kubectl() kubectl.CliInterface
Kubectl mocks base method.
func (*MockCliInterface) SSH ¶ added in v0.1.0
func (m *MockCliInterface) SSH() ssh.CliInterface
SSH mocks base method.
func (*MockCliInterface) SshChannel ¶ added in v0.1.0
func (m *MockCliInterface) SshChannel() sshchannel.Channel
SshChannel mocks base method.
type MockCliInterfaceMockRecorder ¶ added in v0.1.0
type MockCliInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface.
func (*MockCliInterfaceMockRecorder) Kubectl ¶ added in v0.1.0
func (mr *MockCliInterfaceMockRecorder) Kubectl() *gomock.Call
Kubectl indicates an expected call of Kubectl.
func (*MockCliInterfaceMockRecorder) SSH ¶ added in v0.1.0
func (mr *MockCliInterfaceMockRecorder) SSH() *gomock.Call
SSH indicates an expected call of SSH.
func (*MockCliInterfaceMockRecorder) SshChannel ¶ added in v0.1.0
func (mr *MockCliInterfaceMockRecorder) SshChannel() *gomock.Call
SshChannel indicates an expected call of SshChannel.
Directories
¶
Path | Synopsis |
---|---|
Package kubectl is a generated GoMock package.
|
Package kubectl is a generated GoMock package. |
Package ssh is a generated GoMock package.
|
Package ssh is a generated GoMock package. |
Package sshchannel is a generated GoMock package.
|
Package sshchannel is a generated GoMock package. |
Package sshuttle is a generated GoMock package.
|
Package sshuttle is a generated GoMock package. |
Package tunnel is a generated GoMock package.
|
Package tunnel is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.