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 482
/
mock_authorization.go
259 lines (218 loc) · 11.1 KB
/
mock_authorization.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
// Code generated by MockGen. DO NOT EDIT.
// Source: k8s.io/client-go/kubernetes/typed/authorization/v1 (interfaces: AuthorizationV1Interface,SelfSubjectAccessReviewInterface,SelfSubjectAccessReviewsGetter,SelfSubjectRulesReviewInterface,SelfSubjectRulesReviewsGetter)
// Package fake is a generated GoMock package.
package fake
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
v1 "k8s.io/api/authorization/v1"
v10 "k8s.io/apimachinery/pkg/apis/meta/v1"
v11 "k8s.io/client-go/kubernetes/typed/authorization/v1"
rest "k8s.io/client-go/rest"
)
// MockAuthorizationV1Interface is a mock of AuthorizationV1Interface interface.
type MockAuthorizationV1Interface struct {
ctrl *gomock.Controller
recorder *MockAuthorizationV1InterfaceMockRecorder
}
// MockAuthorizationV1InterfaceMockRecorder is the mock recorder for MockAuthorizationV1Interface.
type MockAuthorizationV1InterfaceMockRecorder struct {
mock *MockAuthorizationV1Interface
}
// NewMockAuthorizationV1Interface creates a new mock instance.
func NewMockAuthorizationV1Interface(ctrl *gomock.Controller) *MockAuthorizationV1Interface {
mock := &MockAuthorizationV1Interface{ctrl: ctrl}
mock.recorder = &MockAuthorizationV1InterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuthorizationV1Interface) EXPECT() *MockAuthorizationV1InterfaceMockRecorder {
return m.recorder
}
// LocalSubjectAccessReviews mocks base method.
func (m *MockAuthorizationV1Interface) LocalSubjectAccessReviews(arg0 string) v11.LocalSubjectAccessReviewInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LocalSubjectAccessReviews", arg0)
ret0, _ := ret[0].(v11.LocalSubjectAccessReviewInterface)
return ret0
}
// LocalSubjectAccessReviews indicates an expected call of LocalSubjectAccessReviews.
func (mr *MockAuthorizationV1InterfaceMockRecorder) LocalSubjectAccessReviews(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalSubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).LocalSubjectAccessReviews), arg0)
}
// RESTClient mocks base method.
func (m *MockAuthorizationV1Interface) RESTClient() rest.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RESTClient")
ret0, _ := ret[0].(rest.Interface)
return ret0
}
// RESTClient indicates an expected call of RESTClient.
func (mr *MockAuthorizationV1InterfaceMockRecorder) RESTClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).RESTClient))
}
// SelfSubjectAccessReviews mocks base method.
func (m *MockAuthorizationV1Interface) SelfSubjectAccessReviews() v11.SelfSubjectAccessReviewInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SelfSubjectAccessReviews")
ret0, _ := ret[0].(v11.SelfSubjectAccessReviewInterface)
return ret0
}
// SelfSubjectAccessReviews indicates an expected call of SelfSubjectAccessReviews.
func (mr *MockAuthorizationV1InterfaceMockRecorder) SelfSubjectAccessReviews() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).SelfSubjectAccessReviews))
}
// SelfSubjectRulesReviews mocks base method.
func (m *MockAuthorizationV1Interface) SelfSubjectRulesReviews() v11.SelfSubjectRulesReviewInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SelfSubjectRulesReviews")
ret0, _ := ret[0].(v11.SelfSubjectRulesReviewInterface)
return ret0
}
// SelfSubjectRulesReviews indicates an expected call of SelfSubjectRulesReviews.
func (mr *MockAuthorizationV1InterfaceMockRecorder) SelfSubjectRulesReviews() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectRulesReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).SelfSubjectRulesReviews))
}
// SubjectAccessReviews mocks base method.
func (m *MockAuthorizationV1Interface) SubjectAccessReviews() v11.SubjectAccessReviewInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SubjectAccessReviews")
ret0, _ := ret[0].(v11.SubjectAccessReviewInterface)
return ret0
}
// SubjectAccessReviews indicates an expected call of SubjectAccessReviews.
func (mr *MockAuthorizationV1InterfaceMockRecorder) SubjectAccessReviews() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).SubjectAccessReviews))
}
// MockSelfSubjectAccessReviewInterface is a mock of SelfSubjectAccessReviewInterface interface.
type MockSelfSubjectAccessReviewInterface struct {
ctrl *gomock.Controller
recorder *MockSelfSubjectAccessReviewInterfaceMockRecorder
}
// MockSelfSubjectAccessReviewInterfaceMockRecorder is the mock recorder for MockSelfSubjectAccessReviewInterface.
type MockSelfSubjectAccessReviewInterfaceMockRecorder struct {
mock *MockSelfSubjectAccessReviewInterface
}
// NewMockSelfSubjectAccessReviewInterface creates a new mock instance.
func NewMockSelfSubjectAccessReviewInterface(ctrl *gomock.Controller) *MockSelfSubjectAccessReviewInterface {
mock := &MockSelfSubjectAccessReviewInterface{ctrl: ctrl}
mock.recorder = &MockSelfSubjectAccessReviewInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSelfSubjectAccessReviewInterface) EXPECT() *MockSelfSubjectAccessReviewInterfaceMockRecorder {
return m.recorder
}
// Create mocks base method.
func (m *MockSelfSubjectAccessReviewInterface) Create(arg0 context.Context, arg1 *v1.SelfSubjectAccessReview, arg2 v10.CreateOptions) (*v1.SelfSubjectAccessReview, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
ret0, _ := ret[0].(*v1.SelfSubjectAccessReview)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create.
func (mr *MockSelfSubjectAccessReviewInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockSelfSubjectAccessReviewInterface)(nil).Create), arg0, arg1, arg2)
}
// MockSelfSubjectAccessReviewsGetter is a mock of SelfSubjectAccessReviewsGetter interface.
type MockSelfSubjectAccessReviewsGetter struct {
ctrl *gomock.Controller
recorder *MockSelfSubjectAccessReviewsGetterMockRecorder
}
// MockSelfSubjectAccessReviewsGetterMockRecorder is the mock recorder for MockSelfSubjectAccessReviewsGetter.
type MockSelfSubjectAccessReviewsGetterMockRecorder struct {
mock *MockSelfSubjectAccessReviewsGetter
}
// NewMockSelfSubjectAccessReviewsGetter creates a new mock instance.
func NewMockSelfSubjectAccessReviewsGetter(ctrl *gomock.Controller) *MockSelfSubjectAccessReviewsGetter {
mock := &MockSelfSubjectAccessReviewsGetter{ctrl: ctrl}
mock.recorder = &MockSelfSubjectAccessReviewsGetterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSelfSubjectAccessReviewsGetter) EXPECT() *MockSelfSubjectAccessReviewsGetterMockRecorder {
return m.recorder
}
// SelfSubjectAccessReviews mocks base method.
func (m *MockSelfSubjectAccessReviewsGetter) SelfSubjectAccessReviews() v11.SelfSubjectAccessReviewInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SelfSubjectAccessReviews")
ret0, _ := ret[0].(v11.SelfSubjectAccessReviewInterface)
return ret0
}
// SelfSubjectAccessReviews indicates an expected call of SelfSubjectAccessReviews.
func (mr *MockSelfSubjectAccessReviewsGetterMockRecorder) SelfSubjectAccessReviews() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectAccessReviews", reflect.TypeOf((*MockSelfSubjectAccessReviewsGetter)(nil).SelfSubjectAccessReviews))
}
// MockSelfSubjectRulesReviewInterface is a mock of SelfSubjectRulesReviewInterface interface.
type MockSelfSubjectRulesReviewInterface struct {
ctrl *gomock.Controller
recorder *MockSelfSubjectRulesReviewInterfaceMockRecorder
}
// MockSelfSubjectRulesReviewInterfaceMockRecorder is the mock recorder for MockSelfSubjectRulesReviewInterface.
type MockSelfSubjectRulesReviewInterfaceMockRecorder struct {
mock *MockSelfSubjectRulesReviewInterface
}
// NewMockSelfSubjectRulesReviewInterface creates a new mock instance.
func NewMockSelfSubjectRulesReviewInterface(ctrl *gomock.Controller) *MockSelfSubjectRulesReviewInterface {
mock := &MockSelfSubjectRulesReviewInterface{ctrl: ctrl}
mock.recorder = &MockSelfSubjectRulesReviewInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSelfSubjectRulesReviewInterface) EXPECT() *MockSelfSubjectRulesReviewInterfaceMockRecorder {
return m.recorder
}
// Create mocks base method.
func (m *MockSelfSubjectRulesReviewInterface) Create(arg0 context.Context, arg1 *v1.SelfSubjectRulesReview, arg2 v10.CreateOptions) (*v1.SelfSubjectRulesReview, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
ret0, _ := ret[0].(*v1.SelfSubjectRulesReview)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create.
func (mr *MockSelfSubjectRulesReviewInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockSelfSubjectRulesReviewInterface)(nil).Create), arg0, arg1, arg2)
}
// MockSelfSubjectRulesReviewsGetter is a mock of SelfSubjectRulesReviewsGetter interface.
type MockSelfSubjectRulesReviewsGetter struct {
ctrl *gomock.Controller
recorder *MockSelfSubjectRulesReviewsGetterMockRecorder
}
// MockSelfSubjectRulesReviewsGetterMockRecorder is the mock recorder for MockSelfSubjectRulesReviewsGetter.
type MockSelfSubjectRulesReviewsGetterMockRecorder struct {
mock *MockSelfSubjectRulesReviewsGetter
}
// NewMockSelfSubjectRulesReviewsGetter creates a new mock instance.
func NewMockSelfSubjectRulesReviewsGetter(ctrl *gomock.Controller) *MockSelfSubjectRulesReviewsGetter {
mock := &MockSelfSubjectRulesReviewsGetter{ctrl: ctrl}
mock.recorder = &MockSelfSubjectRulesReviewsGetterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSelfSubjectRulesReviewsGetter) EXPECT() *MockSelfSubjectRulesReviewsGetterMockRecorder {
return m.recorder
}
// SelfSubjectRulesReviews mocks base method.
func (m *MockSelfSubjectRulesReviewsGetter) SelfSubjectRulesReviews() v11.SelfSubjectRulesReviewInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SelfSubjectRulesReviews")
ret0, _ := ret[0].(v11.SelfSubjectRulesReviewInterface)
return ret0
}
// SelfSubjectRulesReviews indicates an expected call of SelfSubjectRulesReviews.
func (mr *MockSelfSubjectRulesReviewsGetterMockRecorder) SelfSubjectRulesReviews() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectRulesReviews", reflect.TypeOf((*MockSelfSubjectRulesReviewsGetter)(nil).SelfSubjectRulesReviews))
}