This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 481
/
mock_client_interface.go
265 lines (225 loc) · 9.03 KB
/
mock_client_interface.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
// Code generated by MockGen. DO NOT EDIT.
// Source: ../../pkg/cluster/client.go
// Package fake is a generated GoMock package.
package fake
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
schema "k8s.io/apimachinery/pkg/runtime/schema"
discovery "k8s.io/client-go/discovery"
dynamic "k8s.io/client-go/dynamic"
kubernetes "k8s.io/client-go/kubernetes"
rest "k8s.io/client-go/rest"
cluster "github.com/vmware-tanzu/octant/pkg/cluster"
)
// MockClientInterface is a mock of ClientInterface interface.
type MockClientInterface struct {
ctrl *gomock.Controller
recorder *MockClientInterfaceMockRecorder
}
// MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.
type MockClientInterfaceMockRecorder struct {
mock *MockClientInterface
}
// NewMockClientInterface creates a new mock instance.
func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface {
mock := &MockClientInterface{ctrl: ctrl}
mock.recorder = &MockClientInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder {
return m.recorder
}
// Close mocks base method.
func (m *MockClientInterface) Close() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Close")
}
// Close indicates an expected call of Close.
func (mr *MockClientInterfaceMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockClientInterface)(nil).Close))
}
// DefaultNamespace mocks base method.
func (m *MockClientInterface) DefaultNamespace() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DefaultNamespace")
ret0, _ := ret[0].(string)
return ret0
}
// DefaultNamespace indicates an expected call of DefaultNamespace.
func (mr *MockClientInterfaceMockRecorder) DefaultNamespace() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultNamespace", reflect.TypeOf((*MockClientInterface)(nil).DefaultNamespace))
}
// DiscoveryClient mocks base method.
func (m *MockClientInterface) DiscoveryClient() (discovery.DiscoveryInterface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DiscoveryClient")
ret0, _ := ret[0].(discovery.DiscoveryInterface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DiscoveryClient indicates an expected call of DiscoveryClient.
func (mr *MockClientInterfaceMockRecorder) DiscoveryClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoveryClient", reflect.TypeOf((*MockClientInterface)(nil).DiscoveryClient))
}
// DynamicClient mocks base method.
func (m *MockClientInterface) DynamicClient() (dynamic.Interface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DynamicClient")
ret0, _ := ret[0].(dynamic.Interface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DynamicClient indicates an expected call of DynamicClient.
func (mr *MockClientInterfaceMockRecorder) DynamicClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DynamicClient", reflect.TypeOf((*MockClientInterface)(nil).DynamicClient))
}
// InfoClient mocks base method.
func (m *MockClientInterface) InfoClient() (cluster.InfoInterface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InfoClient")
ret0, _ := ret[0].(cluster.InfoInterface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// InfoClient indicates an expected call of InfoClient.
func (mr *MockClientInterfaceMockRecorder) InfoClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InfoClient", reflect.TypeOf((*MockClientInterface)(nil).InfoClient))
}
// KubernetesClient mocks base method.
func (m *MockClientInterface) KubernetesClient() (kubernetes.Interface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KubernetesClient")
ret0, _ := ret[0].(kubernetes.Interface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// KubernetesClient indicates an expected call of KubernetesClient.
func (mr *MockClientInterfaceMockRecorder) KubernetesClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KubernetesClient", reflect.TypeOf((*MockClientInterface)(nil).KubernetesClient))
}
// NamespaceClient mocks base method.
func (m *MockClientInterface) NamespaceClient() (cluster.NamespaceInterface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NamespaceClient")
ret0, _ := ret[0].(cluster.NamespaceInterface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NamespaceClient indicates an expected call of NamespaceClient.
func (mr *MockClientInterfaceMockRecorder) NamespaceClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamespaceClient", reflect.TypeOf((*MockClientInterface)(nil).NamespaceClient))
}
// RESTClient mocks base method.
func (m *MockClientInterface) RESTClient() (rest.Interface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RESTClient")
ret0, _ := ret[0].(rest.Interface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RESTClient indicates an expected call of RESTClient.
func (mr *MockClientInterfaceMockRecorder) RESTClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockClientInterface)(nil).RESTClient))
}
// RESTConfig mocks base method.
func (m *MockClientInterface) RESTConfig() *rest.Config {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RESTConfig")
ret0, _ := ret[0].(*rest.Config)
return ret0
}
// RESTConfig indicates an expected call of RESTConfig.
func (mr *MockClientInterfaceMockRecorder) RESTConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTConfig", reflect.TypeOf((*MockClientInterface)(nil).RESTConfig))
}
// ResetMapper mocks base method.
func (m *MockClientInterface) ResetMapper() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ResetMapper")
}
// ResetMapper indicates an expected call of ResetMapper.
func (mr *MockClientInterfaceMockRecorder) ResetMapper() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetMapper", reflect.TypeOf((*MockClientInterface)(nil).ResetMapper))
}
// Resource mocks base method.
func (m *MockClientInterface) Resource(arg0 schema.GroupKind) (schema.GroupVersionResource, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Resource", arg0)
ret0, _ := ret[0].(schema.GroupVersionResource)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Resource indicates an expected call of Resource.
func (mr *MockClientInterfaceMockRecorder) Resource(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resource", reflect.TypeOf((*MockClientInterface)(nil).Resource), arg0)
}
// ResourceExists mocks base method.
func (m *MockClientInterface) ResourceExists(arg0 schema.GroupVersionResource) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResourceExists", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// ResourceExists indicates an expected call of ResourceExists.
func (mr *MockClientInterfaceMockRecorder) ResourceExists(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResourceExists", reflect.TypeOf((*MockClientInterface)(nil).ResourceExists), arg0)
}
// MockRESTInterface is a mock of RESTInterface interface.
type MockRESTInterface struct {
ctrl *gomock.Controller
recorder *MockRESTInterfaceMockRecorder
}
// MockRESTInterfaceMockRecorder is the mock recorder for MockRESTInterface.
type MockRESTInterfaceMockRecorder struct {
mock *MockRESTInterface
}
// NewMockRESTInterface creates a new mock instance.
func NewMockRESTInterface(ctrl *gomock.Controller) *MockRESTInterface {
mock := &MockRESTInterface{ctrl: ctrl}
mock.recorder = &MockRESTInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockRESTInterface) EXPECT() *MockRESTInterfaceMockRecorder {
return m.recorder
}
// RESTClient mocks base method.
func (m *MockRESTInterface) RESTClient() (rest.Interface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RESTClient")
ret0, _ := ret[0].(rest.Interface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RESTClient indicates an expected call of RESTClient.
func (mr *MockRESTInterfaceMockRecorder) RESTClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockRESTInterface)(nil).RESTClient))
}
// RESTConfig mocks base method.
func (m *MockRESTInterface) RESTConfig() *rest.Config {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RESTConfig")
ret0, _ := ret[0].(*rest.Config)
return ret0
}
// RESTConfig indicates an expected call of RESTConfig.
func (mr *MockRESTInterfaceMockRecorder) RESTConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTConfig", reflect.TypeOf((*MockRESTInterface)(nil).RESTConfig))
}