-
Notifications
You must be signed in to change notification settings - Fork 229
/
mock.go
65 lines (54 loc) · 2.25 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
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/kt/connect/types.go
// Package connect is a generated GoMock package.
package connect
import (
reflect "reflect"
exec "github.com/alibaba/kt-connect/pkg/kt/exec"
util "github.com/alibaba/kt-connect/pkg/kt/util"
gomock "github.com/golang/mock/gomock"
)
// MockShadowInterface is a mock of ShadowInterface interface.
type MockShadowInterface struct {
ctrl *gomock.Controller
recorder *MockShadowInterfaceMockRecorder
}
// MockShadowInterfaceMockRecorder is the mock recorder for MockShadowInterface.
type MockShadowInterfaceMockRecorder struct {
mock *MockShadowInterface
}
// NewMockShadowInterface creates a new mock instance.
func NewMockShadowInterface(ctrl *gomock.Controller) *MockShadowInterface {
mock := &MockShadowInterface{ctrl: ctrl}
mock.recorder = &MockShadowInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockShadowInterface) EXPECT() *MockShadowInterfaceMockRecorder {
return m.recorder
}
// Inbound mocks base method.
func (m *MockShadowInterface) Inbound(exposePort, podName string) (int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Inbound", exposePort, podName)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Inbound indicates an expected call of Inbound.
func (mr *MockShadowInterfaceMockRecorder) Inbound(exposePort, podName interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Inbound", reflect.TypeOf((*MockShadowInterface)(nil).Inbound), exposePort, podName)
}
// Outbound mocks base method.
func (m *MockShadowInterface) Outbound(name, podIP string, credential *util.SSHCredential, cidrs []string, exec exec.CliInterface) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Outbound", name, podIP, credential, cidrs, exec)
ret0, _ := ret[0].(error)
return ret0
}
// Outbound indicates an expected call of Outbound.
func (mr *MockShadowInterfaceMockRecorder) Outbound(name, podIP, credential, cidrs, exec interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Outbound", reflect.TypeOf((*MockShadowInterface)(nil).Outbound), name, podIP, credential, cidrs, exec)
}