Documentation ¶
Overview ¶
Package tunnel is a generated GoMock package.
Index ¶
- type Cli
- type CliInterface
- type MockCliInterface
- func (m *MockCliInterface) AddDevice() *exec.Cmd
- func (m *MockCliInterface) AddRoute(cidr string) *exec.Cmd
- func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
- func (m *MockCliInterface) RemoveDevice() *exec.Cmd
- func (m *MockCliInterface) SetDeviceIP() *exec.Cmd
- func (m *MockCliInterface) SetDeviceUp() *exec.Cmd
- type MockCliInterfaceMockRecorder
- func (mr *MockCliInterfaceMockRecorder) AddDevice() *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) AddRoute(cidr interface{}) *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) RemoveDevice() *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) SetDeviceIP() *gomock.Call
- func (mr *MockCliInterfaceMockRecorder) SetDeviceUp() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
Cli ...
func (*Cli) RemoveDevice ¶
func (*Cli) SetDeviceIP ¶
SetDeviceIP set the ip of tun device
func (*Cli) SetDeviceUp ¶
type CliInterface ¶
type CliInterface interface { AddRoute(cidr string) *exec.Cmd AddDevice() *exec.Cmd RemoveDevice() *exec.Cmd SetDeviceIP() *exec.Cmd SetDeviceUp() *exec.Cmd }
CliInterface ...
type MockCliInterface ¶
type MockCliInterface struct {
// contains filtered or unexported fields
}
MockCliInterface is a mock of CliInterface interface.
func NewMockCliInterface ¶
func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface
NewMockCliInterface creates a new mock instance.
func (*MockCliInterface) AddDevice ¶
func (m *MockCliInterface) AddDevice() *exec.Cmd
AddDevice mocks base method.
func (*MockCliInterface) AddRoute ¶
func (m *MockCliInterface) AddRoute(cidr string) *exec.Cmd
AddRoute mocks base method.
func (*MockCliInterface) EXPECT ¶
func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCliInterface) RemoveDevice ¶
func (m *MockCliInterface) RemoveDevice() *exec.Cmd
RemoveDevice mocks base method.
func (*MockCliInterface) SetDeviceIP ¶
func (m *MockCliInterface) SetDeviceIP() *exec.Cmd
SetDeviceIP mocks base method.
func (*MockCliInterface) SetDeviceUp ¶
func (m *MockCliInterface) SetDeviceUp() *exec.Cmd
SetDeviceUp mocks base method.
type MockCliInterfaceMockRecorder ¶
type MockCliInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface.
func (*MockCliInterfaceMockRecorder) AddDevice ¶
func (mr *MockCliInterfaceMockRecorder) AddDevice() *gomock.Call
AddDevice indicates an expected call of AddDevice.
func (*MockCliInterfaceMockRecorder) AddRoute ¶
func (mr *MockCliInterfaceMockRecorder) AddRoute(cidr interface{}) *gomock.Call
AddRoute indicates an expected call of AddRoute.
func (*MockCliInterfaceMockRecorder) RemoveDevice ¶
func (mr *MockCliInterfaceMockRecorder) RemoveDevice() *gomock.Call
RemoveDevice indicates an expected call of RemoveDevice.
func (*MockCliInterfaceMockRecorder) SetDeviceIP ¶
func (mr *MockCliInterfaceMockRecorder) SetDeviceIP() *gomock.Call
SetDeviceIP indicates an expected call of SetDeviceIP.
func (*MockCliInterfaceMockRecorder) SetDeviceUp ¶
func (mr *MockCliInterfaceMockRecorder) SetDeviceUp() *gomock.Call
SetDeviceUp indicates an expected call of SetDeviceUp.