Documentation
¶
Overview ¶
Package tun is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestoreDnsServer ¶
func RestoreDnsServer() error
RestoreDnsServer remove the nameservers added by ktctl
Types ¶
type Cli ¶
type Cli struct{}
Cli ...
func (*Cli) SetDnsServer ¶
SetDnsServer set dns server records
type CliInterface ¶
type CliInterface interface {
ToSocks(sockAddr string, isDebug bool) error
SetRoute(ipRange []string, isDebug bool) error
SetDnsServer(dnsServers []string, isDebug bool) error
GetName() string
}
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) EXPECT ¶
func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCliInterface) SetDnsServer ¶
func (m *MockCliInterface) SetDnsServer(dnsServers []string) error
SetDnsServer mocks base method.
func (*MockCliInterface) SetRoute ¶
func (m *MockCliInterface) SetRoute(ipRange []string) error
SetRoute mocks base method.
func (*MockCliInterface) ToSocks ¶
func (m *MockCliInterface) ToSocks(sockAddr string) error
ToSocks mocks base method.
type MockCliInterfaceMockRecorder ¶
type MockCliInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface.
func (*MockCliInterfaceMockRecorder) SetDnsServer ¶
func (mr *MockCliInterfaceMockRecorder) SetDnsServer(dnsServers interface{}) *gomock.Call
SetDnsServer indicates an expected call of SetDnsServer.
func (*MockCliInterfaceMockRecorder) SetRoute ¶
func (mr *MockCliInterfaceMockRecorder) SetRoute(ipRange interface{}) *gomock.Call
SetRoute indicates an expected call of SetRoute.
func (*MockCliInterfaceMockRecorder) ToSocks ¶
func (mr *MockCliInterfaceMockRecorder) ToSocks(sockAddr interface{}) *gomock.Call
ToSocks indicates an expected call of ToSocks.
Click to show internal directories.
Click to hide internal directories.