1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8 "gordon/internal/boundaries/out"
9
10 mock "github.com/stretchr/testify/mock"
11)
12
13// NewMockDomainSecretStore creates a new instance of MockDomainSecretStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14// The first argument is typically a *testing.T value.
15func NewMockDomainSecretStore(t interface {
16 mock.TestingT
17 Cleanup(func())
18}) *MockDomainSecretStore {
19 mock := &MockDomainSecretStore{}
20 mock.Mock.Test(t)
21
22 t.Cleanup(func() { mock.AssertExpectations(t) })
23
24 return mock
25}
26
27// MockDomainSecretStore is an autogenerated mock type for the DomainSecretStore type
28type MockDomainSecretStore struct {
29 mock.Mock
30}
31
32type MockDomainSecretStore_Expecter struct {
33 mock *mock.Mock
34}
35
36func (_m *MockDomainSecretStore) EXPECT() *MockDomainSecretStore_Expecter {
37 return &MockDomainSecretStore_Expecter{mock: &_m.Mock}
38}
39
40// Delete provides a mock function for the type MockDomainSecretStore
41func (_mock *MockDomainSecretStore) Delete(domain string, key string) error {
42 ret := _mock.Called(domain, key)
43
44 if len(ret) == 0 {
45 panic("no return value specified for Delete")
46 }
47
48 var r0 error
49 if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
50 r0 = returnFunc(domain, key)
51 } else {
52 r0 = ret.Error(0)
53 }
54 return r0
55}
56
57// MockDomainSecretStore_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
58type MockDomainSecretStore_Delete_Call struct {
59 *mock.Call
60}
61
62// Delete is a helper method to define mock.On call
63// - domain string
64// - key string
65func (_e *MockDomainSecretStore_Expecter) Delete(domain interface{}, key interface{}) *MockDomainSecretStore_Delete_Call {
66 return &MockDomainSecretStore_Delete_Call{Call: _e.mock.On("Delete", domain, key)}
67}
68
69func (_c *MockDomainSecretStore_Delete_Call) Run(run func(domain string, key string)) *MockDomainSecretStore_Delete_Call {
70 _c.Call.Run(func(args mock.Arguments) {
71 var arg0 string
72 if args[0] != nil {
73 arg0 = args[0].(string)
74 }
75 var arg1 string
76 if args[1] != nil {
77 arg1 = args[1].(string)
78 }
79 run(
80 arg0,
81 arg1,
82 )
83 })
84 return _c
85}
86
87func (_c *MockDomainSecretStore_Delete_Call) Return(err error) *MockDomainSecretStore_Delete_Call {
88 _c.Call.Return(err)
89 return _c
90}
91
92func (_c *MockDomainSecretStore_Delete_Call) RunAndReturn(run func(domain string, key string) error) *MockDomainSecretStore_Delete_Call {
93 _c.Call.Return(run)
94 return _c
95}
96
97// GetAll provides a mock function for the type MockDomainSecretStore
98func (_mock *MockDomainSecretStore) GetAll(domain string) (map[string]string, error) {
99 ret := _mock.Called(domain)
100
101 if len(ret) == 0 {
102 panic("no return value specified for GetAll")
103 }
104
105 var r0 map[string]string
106 var r1 error
107 if returnFunc, ok := ret.Get(0).(func(string) (map[string]string, error)); ok {
108 return returnFunc(domain)
109 }
110 if returnFunc, ok := ret.Get(0).(func(string) map[string]string); ok {
111 r0 = returnFunc(domain)
112 } else {
113 if ret.Get(0) != nil {
114 r0 = ret.Get(0).(map[string]string)
115 }
116 }
117 if returnFunc, ok := ret.Get(1).(func(string) error); ok {
118 r1 = returnFunc(domain)
119 } else {
120 r1 = ret.Error(1)
121 }
122 return r0, r1
123}
124
125// MockDomainSecretStore_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
126type MockDomainSecretStore_GetAll_Call struct {
127 *mock.Call
128}
129
130// GetAll is a helper method to define mock.On call
131// - domain string
132func (_e *MockDomainSecretStore_Expecter) GetAll(domain interface{}) *MockDomainSecretStore_GetAll_Call {
133 return &MockDomainSecretStore_GetAll_Call{Call: _e.mock.On("GetAll", domain)}
134}
135
136func (_c *MockDomainSecretStore_GetAll_Call) Run(run func(domain string)) *MockDomainSecretStore_GetAll_Call {
137 _c.Call.Run(func(args mock.Arguments) {
138 var arg0 string
139 if args[0] != nil {
140 arg0 = args[0].(string)
141 }
142 run(
143 arg0,
144 )
145 })
146 return _c
147}
148
149func (_c *MockDomainSecretStore_GetAll_Call) Return(stringToString map[string]string, err error) *MockDomainSecretStore_GetAll_Call {
150 _c.Call.Return(stringToString, err)
151 return _c
152}
153
154func (_c *MockDomainSecretStore_GetAll_Call) RunAndReturn(run func(domain string) (map[string]string, error)) *MockDomainSecretStore_GetAll_Call {
155 _c.Call.Return(run)
156 return _c
157}
158
159// ListAttachmentKeys provides a mock function for the type MockDomainSecretStore
160func (_mock *MockDomainSecretStore) ListAttachmentKeys(domain string) ([]out.AttachmentSecrets, error) {
161 ret := _mock.Called(domain)
162
163 if len(ret) == 0 {
164 panic("no return value specified for ListAttachmentKeys")
165 }
166
167 var r0 []out.AttachmentSecrets
168 var r1 error
169 if returnFunc, ok := ret.Get(0).(func(string) ([]out.AttachmentSecrets, error)); ok {
170 return returnFunc(domain)
171 }
172 if returnFunc, ok := ret.Get(0).(func(string) []out.AttachmentSecrets); ok {
173 r0 = returnFunc(domain)
174 } else {
175 if ret.Get(0) != nil {
176 r0 = ret.Get(0).([]out.AttachmentSecrets)
177 }
178 }
179 if returnFunc, ok := ret.Get(1).(func(string) error); ok {
180 r1 = returnFunc(domain)
181 } else {
182 r1 = ret.Error(1)
183 }
184 return r0, r1
185}
186
187// MockDomainSecretStore_ListAttachmentKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAttachmentKeys'
188type MockDomainSecretStore_ListAttachmentKeys_Call struct {
189 *mock.Call
190}
191
192// ListAttachmentKeys is a helper method to define mock.On call
193// - domain string
194func (_e *MockDomainSecretStore_Expecter) ListAttachmentKeys(domain interface{}) *MockDomainSecretStore_ListAttachmentKeys_Call {
195 return &MockDomainSecretStore_ListAttachmentKeys_Call{Call: _e.mock.On("ListAttachmentKeys", domain)}
196}
197
198func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) Run(run func(domain string)) *MockDomainSecretStore_ListAttachmentKeys_Call {
199 _c.Call.Run(func(args mock.Arguments) {
200 var arg0 string
201 if args[0] != nil {
202 arg0 = args[0].(string)
203 }
204 run(
205 arg0,
206 )
207 })
208 return _c
209}
210
211func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) Return(attachmentSecretss []out.AttachmentSecrets, err error) *MockDomainSecretStore_ListAttachmentKeys_Call {
212 _c.Call.Return(attachmentSecretss, err)
213 return _c
214}
215
216func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) RunAndReturn(run func(domain string) ([]out.AttachmentSecrets, error)) *MockDomainSecretStore_ListAttachmentKeys_Call {
217 _c.Call.Return(run)
218 return _c
219}
220
221// ListKeys provides a mock function for the type MockDomainSecretStore
222func (_mock *MockDomainSecretStore) ListKeys(domain string) ([]string, error) {
223 ret := _mock.Called(domain)
224
225 if len(ret) == 0 {
226 panic("no return value specified for ListKeys")
227 }
228
229 var r0 []string
230 var r1 error
231 if returnFunc, ok := ret.Get(0).(func(string) ([]string, error)); ok {
232 return returnFunc(domain)
233 }
234 if returnFunc, ok := ret.Get(0).(func(string) []string); ok {
235 r0 = returnFunc(domain)
236 } else {
237 if ret.Get(0) != nil {
238 r0 = ret.Get(0).([]string)
239 }
240 }
241 if returnFunc, ok := ret.Get(1).(func(string) error); ok {
242 r1 = returnFunc(domain)
243 } else {
244 r1 = ret.Error(1)
245 }
246 return r0, r1
247}
248
249// MockDomainSecretStore_ListKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeys'
250type MockDomainSecretStore_ListKeys_Call struct {
251 *mock.Call
252}
253
254// ListKeys is a helper method to define mock.On call
255// - domain string
256func (_e *MockDomainSecretStore_Expecter) ListKeys(domain interface{}) *MockDomainSecretStore_ListKeys_Call {
257 return &MockDomainSecretStore_ListKeys_Call{Call: _e.mock.On("ListKeys", domain)}
258}
259
260func (_c *MockDomainSecretStore_ListKeys_Call) Run(run func(domain string)) *MockDomainSecretStore_ListKeys_Call {
261 _c.Call.Run(func(args mock.Arguments) {
262 var arg0 string
263 if args[0] != nil {
264 arg0 = args[0].(string)
265 }
266 run(
267 arg0,
268 )
269 })
270 return _c
271}
272
273func (_c *MockDomainSecretStore_ListKeys_Call) Return(strings []string, err error) *MockDomainSecretStore_ListKeys_Call {
274 _c.Call.Return(strings, err)
275 return _c
276}
277
278func (_c *MockDomainSecretStore_ListKeys_Call) RunAndReturn(run func(domain string) ([]string, error)) *MockDomainSecretStore_ListKeys_Call {
279 _c.Call.Return(run)
280 return _c
281}
282
283// Set provides a mock function for the type MockDomainSecretStore
284func (_mock *MockDomainSecretStore) Set(domain string, secrets map[string]string) error {
285 ret := _mock.Called(domain, secrets)
286
287 if len(ret) == 0 {
288 panic("no return value specified for Set")
289 }
290
291 var r0 error
292 if returnFunc, ok := ret.Get(0).(func(string, map[string]string) error); ok {
293 r0 = returnFunc(domain, secrets)
294 } else {
295 r0 = ret.Error(0)
296 }
297 return r0
298}
299
300// MockDomainSecretStore_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
301type MockDomainSecretStore_Set_Call struct {
302 *mock.Call
303}
304
305// Set is a helper method to define mock.On call
306// - domain string
307// - secrets map[string]string
308func (_e *MockDomainSecretStore_Expecter) Set(domain interface{}, secrets interface{}) *MockDomainSecretStore_Set_Call {
309 return &MockDomainSecretStore_Set_Call{Call: _e.mock.On("Set", domain, secrets)}
310}
311
312func (_c *MockDomainSecretStore_Set_Call) Run(run func(domain string, secrets map[string]string)) *MockDomainSecretStore_Set_Call {
313 _c.Call.Run(func(args mock.Arguments) {
314 var arg0 string
315 if args[0] != nil {
316 arg0 = args[0].(string)
317 }
318 var arg1 map[string]string
319 if args[1] != nil {
320 arg1 = args[1].(map[string]string)
321 }
322 run(
323 arg0,
324 arg1,
325 )
326 })
327 return _c
328}
329
330func (_c *MockDomainSecretStore_Set_Call) Return(err error) *MockDomainSecretStore_Set_Call {
331 _c.Call.Return(err)
332 return _c
333}
334
335func (_c *MockDomainSecretStore_Set_Call) RunAndReturn(run func(domain string, secrets map[string]string) error) *MockDomainSecretStore_Set_Call {
336 _c.Call.Return(run)
337 return _c
338}