-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathAlertService_mock.go
More file actions
267 lines (233 loc) · 10.1 KB
/
AlertService_mock.go
File metadata and controls
267 lines (233 loc) · 10.1 KB
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
266
267
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
// Code generated by MockGen. DO NOT EDIT.
// Source: ./cloudstack/AlertService.go
//
// Generated by this command:
//
// mockgen -destination=./cloudstack/AlertService_mock.go -package=cloudstack -copyright_file=header.txt -source=./cloudstack/AlertService.go
//
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockAlertServiceIface is a mock of AlertServiceIface interface.
type MockAlertServiceIface struct {
ctrl *gomock.Controller
recorder *MockAlertServiceIfaceMockRecorder
isgomock struct{}
}
// MockAlertServiceIfaceMockRecorder is the mock recorder for MockAlertServiceIface.
type MockAlertServiceIfaceMockRecorder struct {
mock *MockAlertServiceIface
}
// NewMockAlertServiceIface creates a new mock instance.
func NewMockAlertServiceIface(ctrl *gomock.Controller) *MockAlertServiceIface {
mock := &MockAlertServiceIface{ctrl: ctrl}
mock.recorder = &MockAlertServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAlertServiceIface) EXPECT() *MockAlertServiceIfaceMockRecorder {
return m.recorder
}
// ArchiveAlerts mocks base method.
func (m *MockAlertServiceIface) ArchiveAlerts(p *ArchiveAlertsParams) (*ArchiveAlertsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ArchiveAlerts", p)
ret0, _ := ret[0].(*ArchiveAlertsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ArchiveAlerts indicates an expected call of ArchiveAlerts.
func (mr *MockAlertServiceIfaceMockRecorder) ArchiveAlerts(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArchiveAlerts", reflect.TypeOf((*MockAlertServiceIface)(nil).ArchiveAlerts), p)
}
// DeleteAlerts mocks base method.
func (m *MockAlertServiceIface) DeleteAlerts(p *DeleteAlertsParams) (*DeleteAlertsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteAlerts", p)
ret0, _ := ret[0].(*DeleteAlertsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteAlerts indicates an expected call of DeleteAlerts.
func (mr *MockAlertServiceIfaceMockRecorder) DeleteAlerts(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAlerts", reflect.TypeOf((*MockAlertServiceIface)(nil).DeleteAlerts), p)
}
// GenerateAlert mocks base method.
func (m *MockAlertServiceIface) GenerateAlert(p *GenerateAlertParams) (*GenerateAlertResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GenerateAlert", p)
ret0, _ := ret[0].(*GenerateAlertResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GenerateAlert indicates an expected call of GenerateAlert.
func (mr *MockAlertServiceIfaceMockRecorder) GenerateAlert(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateAlert", reflect.TypeOf((*MockAlertServiceIface)(nil).GenerateAlert), p)
}
// GetAlertByID mocks base method.
func (m *MockAlertServiceIface) GetAlertByID(id string, opts ...OptionFunc) (*Alert, int, error) {
m.ctrl.T.Helper()
varargs := []any{id}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetAlertByID", varargs...)
ret0, _ := ret[0].(*Alert)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetAlertByID indicates an expected call of GetAlertByID.
func (mr *MockAlertServiceIfaceMockRecorder) GetAlertByID(id any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{id}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlertByID", reflect.TypeOf((*MockAlertServiceIface)(nil).GetAlertByID), varargs...)
}
// GetAlertByName mocks base method.
func (m *MockAlertServiceIface) GetAlertByName(name string, opts ...OptionFunc) (*Alert, int, error) {
m.ctrl.T.Helper()
varargs := []any{name}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetAlertByName", varargs...)
ret0, _ := ret[0].(*Alert)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetAlertByName indicates an expected call of GetAlertByName.
func (mr *MockAlertServiceIfaceMockRecorder) GetAlertByName(name any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlertByName", reflect.TypeOf((*MockAlertServiceIface)(nil).GetAlertByName), varargs...)
}
// GetAlertID mocks base method.
func (m *MockAlertServiceIface) GetAlertID(name string, opts ...OptionFunc) (string, int, error) {
m.ctrl.T.Helper()
varargs := []any{name}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetAlertID", varargs...)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetAlertID indicates an expected call of GetAlertID.
func (mr *MockAlertServiceIfaceMockRecorder) GetAlertID(name any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlertID", reflect.TypeOf((*MockAlertServiceIface)(nil).GetAlertID), varargs...)
}
// ListAlertTypes mocks base method.
func (m *MockAlertServiceIface) ListAlertTypes(p *ListAlertTypesParams) (*ListAlertTypesResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListAlertTypes", p)
ret0, _ := ret[0].(*ListAlertTypesResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListAlertTypes indicates an expected call of ListAlertTypes.
func (mr *MockAlertServiceIfaceMockRecorder) ListAlertTypes(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAlertTypes", reflect.TypeOf((*MockAlertServiceIface)(nil).ListAlertTypes), p)
}
// ListAlerts mocks base method.
func (m *MockAlertServiceIface) ListAlerts(p *ListAlertsParams) (*ListAlertsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListAlerts", p)
ret0, _ := ret[0].(*ListAlertsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListAlerts indicates an expected call of ListAlerts.
func (mr *MockAlertServiceIfaceMockRecorder) ListAlerts(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAlerts", reflect.TypeOf((*MockAlertServiceIface)(nil).ListAlerts), p)
}
// NewArchiveAlertsParams mocks base method.
func (m *MockAlertServiceIface) NewArchiveAlertsParams() *ArchiveAlertsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewArchiveAlertsParams")
ret0, _ := ret[0].(*ArchiveAlertsParams)
return ret0
}
// NewArchiveAlertsParams indicates an expected call of NewArchiveAlertsParams.
func (mr *MockAlertServiceIfaceMockRecorder) NewArchiveAlertsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewArchiveAlertsParams", reflect.TypeOf((*MockAlertServiceIface)(nil).NewArchiveAlertsParams))
}
// NewDeleteAlertsParams mocks base method.
func (m *MockAlertServiceIface) NewDeleteAlertsParams() *DeleteAlertsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDeleteAlertsParams")
ret0, _ := ret[0].(*DeleteAlertsParams)
return ret0
}
// NewDeleteAlertsParams indicates an expected call of NewDeleteAlertsParams.
func (mr *MockAlertServiceIfaceMockRecorder) NewDeleteAlertsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteAlertsParams", reflect.TypeOf((*MockAlertServiceIface)(nil).NewDeleteAlertsParams))
}
// NewGenerateAlertParams mocks base method.
func (m *MockAlertServiceIface) NewGenerateAlertParams(description, name string, alertType int) *GenerateAlertParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewGenerateAlertParams", description, name, alertType)
ret0, _ := ret[0].(*GenerateAlertParams)
return ret0
}
// NewGenerateAlertParams indicates an expected call of NewGenerateAlertParams.
func (mr *MockAlertServiceIfaceMockRecorder) NewGenerateAlertParams(description, name, alertType any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewGenerateAlertParams", reflect.TypeOf((*MockAlertServiceIface)(nil).NewGenerateAlertParams), description, name, alertType)
}
// NewListAlertTypesParams mocks base method.
func (m *MockAlertServiceIface) NewListAlertTypesParams() *ListAlertTypesParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListAlertTypesParams")
ret0, _ := ret[0].(*ListAlertTypesParams)
return ret0
}
// NewListAlertTypesParams indicates an expected call of NewListAlertTypesParams.
func (mr *MockAlertServiceIfaceMockRecorder) NewListAlertTypesParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListAlertTypesParams", reflect.TypeOf((*MockAlertServiceIface)(nil).NewListAlertTypesParams))
}
// NewListAlertsParams mocks base method.
func (m *MockAlertServiceIface) NewListAlertsParams() *ListAlertsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListAlertsParams")
ret0, _ := ret[0].(*ListAlertsParams)
return ret0
}
// NewListAlertsParams indicates an expected call of NewListAlertsParams.
func (mr *MockAlertServiceIfaceMockRecorder) NewListAlertsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListAlertsParams", reflect.TypeOf((*MockAlertServiceIface)(nil).NewListAlertsParams))
}