forked from JayceLau/kt-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock.go
78 lines (66 loc) · 2.37 KB
/
mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/kt/exec/types.go
// Package exec is a generated GoMock package.
package exec
import (
kubectl "github.com/alibaba/kt-connect/pkg/kt/exec/kubectl"
ssh "github.com/alibaba/kt-connect/pkg/kt/exec/ssh"
sshuttle "github.com/alibaba/kt-connect/pkg/kt/exec/sshuttle"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockCliInterface is a mock of CliInterface interface
type MockCliInterface struct {
ctrl *gomock.Controller
recorder *MockCliInterfaceMockRecorder
}
// MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface
type MockCliInterfaceMockRecorder struct {
mock *MockCliInterface
}
// NewMockCliInterface creates a new mock instance
func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface {
mock := &MockCliInterface{ctrl: ctrl}
mock.recorder = &MockCliInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder {
return m.recorder
}
// Kubectl mocks base method
func (m *MockCliInterface) Kubectl() kubectl.CliInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Kubectl")
ret0, _ := ret[0].(kubectl.CliInterface)
return ret0
}
// Kubectl indicates an expected call of Kubectl
func (mr *MockCliInterfaceMockRecorder) Kubectl() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kubectl", reflect.TypeOf((*MockCliInterface)(nil).Kubectl))
}
// SSHUttle mocks base method
func (m *MockCliInterface) SSHUttle() sshuttle.CliInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SSHUttle")
ret0, _ := ret[0].(sshuttle.CliInterface)
return ret0
}
// SSHUttle indicates an expected call of SSHUttle
func (mr *MockCliInterfaceMockRecorder) SSHUttle() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SSHUttle", reflect.TypeOf((*MockCliInterface)(nil).SSHUttle))
}
// SSH mocks base method
func (m *MockCliInterface) SSH() ssh.CliInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SSH")
ret0, _ := ret[0].(ssh.CliInterface)
return ret0
}
// SSH indicates an expected call of SSH
func (mr *MockCliInterfaceMockRecorder) SSH() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SSH", reflect.TypeOf((*MockCliInterface)(nil).SSH))
}