forked from joeholley/supergloo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mesh_policy_client.sk.go
178 lines (151 loc) · 6.21 KB
/
mesh_policy_client.sk.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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./pkg/api/external/istio/authorization/v1alpha1/mesh_policy_client.sk.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
clients "github.com/solo-io/solo-kit/pkg/api/v1/clients"
v1alpha1 "github.com/solo-io/supergloo/pkg/api/external/istio/authorization/v1alpha1"
)
// MockMeshPolicyWatcher is a mock of MeshPolicyWatcher interface
type MockMeshPolicyWatcher struct {
ctrl *gomock.Controller
recorder *MockMeshPolicyWatcherMockRecorder
}
// MockMeshPolicyWatcherMockRecorder is the mock recorder for MockMeshPolicyWatcher
type MockMeshPolicyWatcherMockRecorder struct {
mock *MockMeshPolicyWatcher
}
// NewMockMeshPolicyWatcher creates a new mock instance
func NewMockMeshPolicyWatcher(ctrl *gomock.Controller) *MockMeshPolicyWatcher {
mock := &MockMeshPolicyWatcher{ctrl: ctrl}
mock.recorder = &MockMeshPolicyWatcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockMeshPolicyWatcher) EXPECT() *MockMeshPolicyWatcherMockRecorder {
return m.recorder
}
// Watch mocks base method
func (m *MockMeshPolicyWatcher) Watch(opts clients.WatchOpts) (<-chan v1alpha1.MeshPolicyList, <-chan error, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Watch", opts)
ret0, _ := ret[0].(<-chan v1alpha1.MeshPolicyList)
ret1, _ := ret[1].(<-chan error)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Watch indicates an expected call of Watch
func (mr *MockMeshPolicyWatcherMockRecorder) Watch(opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockMeshPolicyWatcher)(nil).Watch), opts)
}
// MockMeshPolicyClient is a mock of MeshPolicyClient interface
type MockMeshPolicyClient struct {
ctrl *gomock.Controller
recorder *MockMeshPolicyClientMockRecorder
}
// MockMeshPolicyClientMockRecorder is the mock recorder for MockMeshPolicyClient
type MockMeshPolicyClientMockRecorder struct {
mock *MockMeshPolicyClient
}
// NewMockMeshPolicyClient creates a new mock instance
func NewMockMeshPolicyClient(ctrl *gomock.Controller) *MockMeshPolicyClient {
mock := &MockMeshPolicyClient{ctrl: ctrl}
mock.recorder = &MockMeshPolicyClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockMeshPolicyClient) EXPECT() *MockMeshPolicyClientMockRecorder {
return m.recorder
}
// BaseClient mocks base method
func (m *MockMeshPolicyClient) BaseClient() clients.ResourceClient {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BaseClient")
ret0, _ := ret[0].(clients.ResourceClient)
return ret0
}
// BaseClient indicates an expected call of BaseClient
func (mr *MockMeshPolicyClientMockRecorder) BaseClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseClient", reflect.TypeOf((*MockMeshPolicyClient)(nil).BaseClient))
}
// Register mocks base method
func (m *MockMeshPolicyClient) Register() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Register")
ret0, _ := ret[0].(error)
return ret0
}
// Register indicates an expected call of Register
func (mr *MockMeshPolicyClientMockRecorder) Register() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockMeshPolicyClient)(nil).Register))
}
// Read mocks base method
func (m *MockMeshPolicyClient) Read(name string, opts clients.ReadOpts) (*v1alpha1.MeshPolicy, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Read", name, opts)
ret0, _ := ret[0].(*v1alpha1.MeshPolicy)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Read indicates an expected call of Read
func (mr *MockMeshPolicyClientMockRecorder) Read(name, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockMeshPolicyClient)(nil).Read), name, opts)
}
// Write mocks base method
func (m *MockMeshPolicyClient) Write(resource *v1alpha1.MeshPolicy, opts clients.WriteOpts) (*v1alpha1.MeshPolicy, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", resource, opts)
ret0, _ := ret[0].(*v1alpha1.MeshPolicy)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Write indicates an expected call of Write
func (mr *MockMeshPolicyClientMockRecorder) Write(resource, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockMeshPolicyClient)(nil).Write), resource, opts)
}
// Delete mocks base method
func (m *MockMeshPolicyClient) Delete(name string, opts clients.DeleteOpts) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", name, opts)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete
func (mr *MockMeshPolicyClientMockRecorder) Delete(name, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMeshPolicyClient)(nil).Delete), name, opts)
}
// List mocks base method
func (m *MockMeshPolicyClient) List(opts clients.ListOpts) (v1alpha1.MeshPolicyList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", opts)
ret0, _ := ret[0].(v1alpha1.MeshPolicyList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List
func (mr *MockMeshPolicyClientMockRecorder) List(opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockMeshPolicyClient)(nil).List), opts)
}
// Watch mocks base method
func (m *MockMeshPolicyClient) Watch(opts clients.WatchOpts) (<-chan v1alpha1.MeshPolicyList, <-chan error, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Watch", opts)
ret0, _ := ret[0].(<-chan v1alpha1.MeshPolicyList)
ret1, _ := ret[1].(<-chan error)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Watch indicates an expected call of Watch
func (mr *MockMeshPolicyClientMockRecorder) Watch(opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockMeshPolicyClient)(nil).Watch), opts)
}