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