forked from JayceLau/kt-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock.go
79 lines (67 loc) · 2.42 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
79
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/kt/types.go
// Package kt is a generated GoMock package.
package kt
import (
cluster "github.com/alibaba/kt-connect/pkg/kt/cluster"
connect "github.com/alibaba/kt-connect/pkg/kt/connect"
exec "github.com/alibaba/kt-connect/pkg/kt/exec"
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
}
// Kubernetes mocks base method
func (m *MockCliInterface) Kubernetes() (cluster.KubernetesInterface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Kubernetes")
ret0, _ := ret[0].(cluster.KubernetesInterface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Kubernetes indicates an expected call of Kubernetes
func (mr *MockCliInterfaceMockRecorder) Kubernetes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kubernetes", reflect.TypeOf((*MockCliInterface)(nil).Kubernetes))
}
// Shadow mocks base method
func (m *MockCliInterface) Shadow() connect.ShadowInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Shadow")
ret0, _ := ret[0].(connect.ShadowInterface)
return ret0
}
// Shadow indicates an expected call of Shadow
func (mr *MockCliInterfaceMockRecorder) Shadow() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shadow", reflect.TypeOf((*MockCliInterface)(nil).Shadow))
}
// Exec mocks base method
func (m *MockCliInterface) Exec() exec.CliInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Exec")
ret0, _ := ret[0].(exec.CliInterface)
return ret0
}
// Exec indicates an expected call of Exec
func (mr *MockCliInterfaceMockRecorder) Exec() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockCliInterface)(nil).Exec))
}