forked from joeholley/supergloo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
http_route_group_client.sk.go
178 lines (151 loc) · 6.68 KB
/
http_route_group_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/smi/specs/v1alpha1/http_route_group_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/smi/specs/v1alpha1"
)
// MockHTTPRouteGroupWatcher is a mock of HTTPRouteGroupWatcher interface
type MockHTTPRouteGroupWatcher struct {
ctrl *gomock.Controller
recorder *MockHTTPRouteGroupWatcherMockRecorder
}
// MockHTTPRouteGroupWatcherMockRecorder is the mock recorder for MockHTTPRouteGroupWatcher
type MockHTTPRouteGroupWatcherMockRecorder struct {
mock *MockHTTPRouteGroupWatcher
}
// NewMockHTTPRouteGroupWatcher creates a new mock instance
func NewMockHTTPRouteGroupWatcher(ctrl *gomock.Controller) *MockHTTPRouteGroupWatcher {
mock := &MockHTTPRouteGroupWatcher{ctrl: ctrl}
mock.recorder = &MockHTTPRouteGroupWatcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHTTPRouteGroupWatcher) EXPECT() *MockHTTPRouteGroupWatcherMockRecorder {
return m.recorder
}
// Watch mocks base method
func (m *MockHTTPRouteGroupWatcher) Watch(namespace string, opts clients.WatchOpts) (<-chan v1alpha1.HTTPRouteGroupList, <-chan error, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Watch", namespace, opts)
ret0, _ := ret[0].(<-chan v1alpha1.HTTPRouteGroupList)
ret1, _ := ret[1].(<-chan error)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Watch indicates an expected call of Watch
func (mr *MockHTTPRouteGroupWatcherMockRecorder) Watch(namespace, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockHTTPRouteGroupWatcher)(nil).Watch), namespace, opts)
}
// MockHTTPRouteGroupClient is a mock of HTTPRouteGroupClient interface
type MockHTTPRouteGroupClient struct {
ctrl *gomock.Controller
recorder *MockHTTPRouteGroupClientMockRecorder
}
// MockHTTPRouteGroupClientMockRecorder is the mock recorder for MockHTTPRouteGroupClient
type MockHTTPRouteGroupClientMockRecorder struct {
mock *MockHTTPRouteGroupClient
}
// NewMockHTTPRouteGroupClient creates a new mock instance
func NewMockHTTPRouteGroupClient(ctrl *gomock.Controller) *MockHTTPRouteGroupClient {
mock := &MockHTTPRouteGroupClient{ctrl: ctrl}
mock.recorder = &MockHTTPRouteGroupClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHTTPRouteGroupClient) EXPECT() *MockHTTPRouteGroupClientMockRecorder {
return m.recorder
}
// BaseClient mocks base method
func (m *MockHTTPRouteGroupClient) 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 *MockHTTPRouteGroupClientMockRecorder) BaseClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseClient", reflect.TypeOf((*MockHTTPRouteGroupClient)(nil).BaseClient))
}
// Register mocks base method
func (m *MockHTTPRouteGroupClient) 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 *MockHTTPRouteGroupClientMockRecorder) Register() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockHTTPRouteGroupClient)(nil).Register))
}
// Read mocks base method
func (m *MockHTTPRouteGroupClient) Read(namespace, name string, opts clients.ReadOpts) (*v1alpha1.HTTPRouteGroup, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Read", namespace, name, opts)
ret0, _ := ret[0].(*v1alpha1.HTTPRouteGroup)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Read indicates an expected call of Read
func (mr *MockHTTPRouteGroupClientMockRecorder) Read(namespace, name, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockHTTPRouteGroupClient)(nil).Read), namespace, name, opts)
}
// Write mocks base method
func (m *MockHTTPRouteGroupClient) Write(resource *v1alpha1.HTTPRouteGroup, opts clients.WriteOpts) (*v1alpha1.HTTPRouteGroup, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", resource, opts)
ret0, _ := ret[0].(*v1alpha1.HTTPRouteGroup)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Write indicates an expected call of Write
func (mr *MockHTTPRouteGroupClientMockRecorder) Write(resource, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockHTTPRouteGroupClient)(nil).Write), resource, opts)
}
// Delete mocks base method
func (m *MockHTTPRouteGroupClient) Delete(namespace, name string, opts clients.DeleteOpts) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", namespace, name, opts)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete
func (mr *MockHTTPRouteGroupClientMockRecorder) Delete(namespace, name, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockHTTPRouteGroupClient)(nil).Delete), namespace, name, opts)
}
// List mocks base method
func (m *MockHTTPRouteGroupClient) List(namespace string, opts clients.ListOpts) (v1alpha1.HTTPRouteGroupList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", namespace, opts)
ret0, _ := ret[0].(v1alpha1.HTTPRouteGroupList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List
func (mr *MockHTTPRouteGroupClientMockRecorder) List(namespace, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockHTTPRouteGroupClient)(nil).List), namespace, opts)
}
// Watch mocks base method
func (m *MockHTTPRouteGroupClient) Watch(namespace string, opts clients.WatchOpts) (<-chan v1alpha1.HTTPRouteGroupList, <-chan error, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Watch", namespace, opts)
ret0, _ := ret[0].(<-chan v1alpha1.HTTPRouteGroupList)
ret1, _ := ret[1].(<-chan error)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Watch indicates an expected call of Watch
func (mr *MockHTTPRouteGroupClientMockRecorder) Watch(namespace, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockHTTPRouteGroupClient)(nil).Watch), namespace, opts)
}