v2.11.0 dca6537

mock_domain_secret_store.go RawHistoryFolder

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// DeleteAttachment provides a mock function for the type MockDomainSecretStore
97func (_mock *MockDomainSecretStore) DeleteAttachment(containerName string, key string) error {
98	ret := _mock.Called(containerName, key)
99
100	if len(ret) == 0 {
101		panic("no return value specified for DeleteAttachment")
102	}
103
104	var r0 error
105	if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
106		r0 = returnFunc(containerName, key)
107	} else {
108		r0 = ret.Error(0)
109	}
110	return r0
111}
112
113// MockDomainSecretStore_DeleteAttachment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAttachment'
114type MockDomainSecretStore_DeleteAttachment_Call struct {
115	*mock.Call
116}
117
118// DeleteAttachment is a helper method to define mock.On call
119//   - containerName string
120//   - key string
121func (_e *MockDomainSecretStore_Expecter) DeleteAttachment(containerName interface{}, key interface{}) *MockDomainSecretStore_DeleteAttachment_Call {
122	return &MockDomainSecretStore_DeleteAttachment_Call{Call: _e.mock.On("DeleteAttachment", containerName, key)}
123}
124
125func (_c *MockDomainSecretStore_DeleteAttachment_Call) Run(run func(containerName string, key string)) *MockDomainSecretStore_DeleteAttachment_Call {
126	_c.Call.Run(func(args mock.Arguments) {
127		var arg0 string
128		if args[0] != nil {
129			arg0 = args[0].(string)
130		}
131		var arg1 string
132		if args[1] != nil {
133			arg1 = args[1].(string)
134		}
135		run(
136			arg0,
137			arg1,
138		)
139	})
140	return _c
141}
142
143func (_c *MockDomainSecretStore_DeleteAttachment_Call) Return(err error) *MockDomainSecretStore_DeleteAttachment_Call {
144	_c.Call.Return(err)
145	return _c
146}
147
148func (_c *MockDomainSecretStore_DeleteAttachment_Call) RunAndReturn(run func(containerName string, key string) error) *MockDomainSecretStore_DeleteAttachment_Call {
149	_c.Call.Return(run)
150	return _c
151}
152
153// GetAll provides a mock function for the type MockDomainSecretStore
154func (_mock *MockDomainSecretStore) GetAll(domain string) (map[string]string, error) {
155	ret := _mock.Called(domain)
156
157	if len(ret) == 0 {
158		panic("no return value specified for GetAll")
159	}
160
161	var r0 map[string]string
162	var r1 error
163	if returnFunc, ok := ret.Get(0).(func(string) (map[string]string, error)); ok {
164		return returnFunc(domain)
165	}
166	if returnFunc, ok := ret.Get(0).(func(string) map[string]string); ok {
167		r0 = returnFunc(domain)
168	} else {
169		if ret.Get(0) != nil {
170			r0 = ret.Get(0).(map[string]string)
171		}
172	}
173	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
174		r1 = returnFunc(domain)
175	} else {
176		r1 = ret.Error(1)
177	}
178	return r0, r1
179}
180
181// MockDomainSecretStore_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
182type MockDomainSecretStore_GetAll_Call struct {
183	*mock.Call
184}
185
186// GetAll is a helper method to define mock.On call
187//   - domain string
188func (_e *MockDomainSecretStore_Expecter) GetAll(domain interface{}) *MockDomainSecretStore_GetAll_Call {
189	return &MockDomainSecretStore_GetAll_Call{Call: _e.mock.On("GetAll", domain)}
190}
191
192func (_c *MockDomainSecretStore_GetAll_Call) Run(run func(domain string)) *MockDomainSecretStore_GetAll_Call {
193	_c.Call.Run(func(args mock.Arguments) {
194		var arg0 string
195		if args[0] != nil {
196			arg0 = args[0].(string)
197		}
198		run(
199			arg0,
200		)
201	})
202	return _c
203}
204
205func (_c *MockDomainSecretStore_GetAll_Call) Return(stringToString map[string]string, err error) *MockDomainSecretStore_GetAll_Call {
206	_c.Call.Return(stringToString, err)
207	return _c
208}
209
210func (_c *MockDomainSecretStore_GetAll_Call) RunAndReturn(run func(domain string) (map[string]string, error)) *MockDomainSecretStore_GetAll_Call {
211	_c.Call.Return(run)
212	return _c
213}
214
215// GetAllAttachment provides a mock function for the type MockDomainSecretStore
216func (_mock *MockDomainSecretStore) GetAllAttachment(containerName string) (map[string]string, error) {
217	ret := _mock.Called(containerName)
218
219	if len(ret) == 0 {
220		panic("no return value specified for GetAllAttachment")
221	}
222
223	var r0 map[string]string
224	var r1 error
225	if returnFunc, ok := ret.Get(0).(func(string) (map[string]string, error)); ok {
226		return returnFunc(containerName)
227	}
228	if returnFunc, ok := ret.Get(0).(func(string) map[string]string); ok {
229		r0 = returnFunc(containerName)
230	} else {
231		if ret.Get(0) != nil {
232			r0 = ret.Get(0).(map[string]string)
233		}
234	}
235	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
236		r1 = returnFunc(containerName)
237	} else {
238		r1 = ret.Error(1)
239	}
240	return r0, r1
241}
242
243// MockDomainSecretStore_GetAllAttachment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAttachment'
244type MockDomainSecretStore_GetAllAttachment_Call struct {
245	*mock.Call
246}
247
248// GetAllAttachment is a helper method to define mock.On call
249//   - containerName string
250func (_e *MockDomainSecretStore_Expecter) GetAllAttachment(containerName interface{}) *MockDomainSecretStore_GetAllAttachment_Call {
251	return &MockDomainSecretStore_GetAllAttachment_Call{Call: _e.mock.On("GetAllAttachment", containerName)}
252}
253
254func (_c *MockDomainSecretStore_GetAllAttachment_Call) Run(run func(containerName string)) *MockDomainSecretStore_GetAllAttachment_Call {
255	_c.Call.Run(func(args mock.Arguments) {
256		var arg0 string
257		if args[0] != nil {
258			arg0 = args[0].(string)
259		}
260		run(
261			arg0,
262		)
263	})
264	return _c
265}
266
267func (_c *MockDomainSecretStore_GetAllAttachment_Call) Return(stringToString map[string]string, err error) *MockDomainSecretStore_GetAllAttachment_Call {
268	_c.Call.Return(stringToString, err)
269	return _c
270}
271
272func (_c *MockDomainSecretStore_GetAllAttachment_Call) RunAndReturn(run func(containerName string) (map[string]string, error)) *MockDomainSecretStore_GetAllAttachment_Call {
273	_c.Call.Return(run)
274	return _c
275}
276
277// ListAttachmentKeys provides a mock function for the type MockDomainSecretStore
278func (_mock *MockDomainSecretStore) ListAttachmentKeys(domain string) ([]out.AttachmentSecrets, error) {
279	ret := _mock.Called(domain)
280
281	if len(ret) == 0 {
282		panic("no return value specified for ListAttachmentKeys")
283	}
284
285	var r0 []out.AttachmentSecrets
286	var r1 error
287	if returnFunc, ok := ret.Get(0).(func(string) ([]out.AttachmentSecrets, error)); ok {
288		return returnFunc(domain)
289	}
290	if returnFunc, ok := ret.Get(0).(func(string) []out.AttachmentSecrets); ok {
291		r0 = returnFunc(domain)
292	} else {
293		if ret.Get(0) != nil {
294			r0 = ret.Get(0).([]out.AttachmentSecrets)
295		}
296	}
297	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
298		r1 = returnFunc(domain)
299	} else {
300		r1 = ret.Error(1)
301	}
302	return r0, r1
303}
304
305// MockDomainSecretStore_ListAttachmentKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAttachmentKeys'
306type MockDomainSecretStore_ListAttachmentKeys_Call struct {
307	*mock.Call
308}
309
310// ListAttachmentKeys is a helper method to define mock.On call
311//   - domain string
312func (_e *MockDomainSecretStore_Expecter) ListAttachmentKeys(domain interface{}) *MockDomainSecretStore_ListAttachmentKeys_Call {
313	return &MockDomainSecretStore_ListAttachmentKeys_Call{Call: _e.mock.On("ListAttachmentKeys", domain)}
314}
315
316func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) Run(run func(domain string)) *MockDomainSecretStore_ListAttachmentKeys_Call {
317	_c.Call.Run(func(args mock.Arguments) {
318		var arg0 string
319		if args[0] != nil {
320			arg0 = args[0].(string)
321		}
322		run(
323			arg0,
324		)
325	})
326	return _c
327}
328
329func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) Return(attachmentSecretss []out.AttachmentSecrets, err error) *MockDomainSecretStore_ListAttachmentKeys_Call {
330	_c.Call.Return(attachmentSecretss, err)
331	return _c
332}
333
334func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) RunAndReturn(run func(domain string) ([]out.AttachmentSecrets, error)) *MockDomainSecretStore_ListAttachmentKeys_Call {
335	_c.Call.Return(run)
336	return _c
337}
338
339// ListKeys provides a mock function for the type MockDomainSecretStore
340func (_mock *MockDomainSecretStore) ListKeys(domain string) ([]string, error) {
341	ret := _mock.Called(domain)
342
343	if len(ret) == 0 {
344		panic("no return value specified for ListKeys")
345	}
346
347	var r0 []string
348	var r1 error
349	if returnFunc, ok := ret.Get(0).(func(string) ([]string, error)); ok {
350		return returnFunc(domain)
351	}
352	if returnFunc, ok := ret.Get(0).(func(string) []string); ok {
353		r0 = returnFunc(domain)
354	} else {
355		if ret.Get(0) != nil {
356			r0 = ret.Get(0).([]string)
357		}
358	}
359	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
360		r1 = returnFunc(domain)
361	} else {
362		r1 = ret.Error(1)
363	}
364	return r0, r1
365}
366
367// MockDomainSecretStore_ListKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeys'
368type MockDomainSecretStore_ListKeys_Call struct {
369	*mock.Call
370}
371
372// ListKeys is a helper method to define mock.On call
373//   - domain string
374func (_e *MockDomainSecretStore_Expecter) ListKeys(domain interface{}) *MockDomainSecretStore_ListKeys_Call {
375	return &MockDomainSecretStore_ListKeys_Call{Call: _e.mock.On("ListKeys", domain)}
376}
377
378func (_c *MockDomainSecretStore_ListKeys_Call) Run(run func(domain string)) *MockDomainSecretStore_ListKeys_Call {
379	_c.Call.Run(func(args mock.Arguments) {
380		var arg0 string
381		if args[0] != nil {
382			arg0 = args[0].(string)
383		}
384		run(
385			arg0,
386		)
387	})
388	return _c
389}
390
391func (_c *MockDomainSecretStore_ListKeys_Call) Return(strings []string, err error) *MockDomainSecretStore_ListKeys_Call {
392	_c.Call.Return(strings, err)
393	return _c
394}
395
396func (_c *MockDomainSecretStore_ListKeys_Call) RunAndReturn(run func(domain string) ([]string, error)) *MockDomainSecretStore_ListKeys_Call {
397	_c.Call.Return(run)
398	return _c
399}
400
401// Set provides a mock function for the type MockDomainSecretStore
402func (_mock *MockDomainSecretStore) Set(domain string, secrets map[string]string) error {
403	ret := _mock.Called(domain, secrets)
404
405	if len(ret) == 0 {
406		panic("no return value specified for Set")
407	}
408
409	var r0 error
410	if returnFunc, ok := ret.Get(0).(func(string, map[string]string) error); ok {
411		r0 = returnFunc(domain, secrets)
412	} else {
413		r0 = ret.Error(0)
414	}
415	return r0
416}
417
418// MockDomainSecretStore_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
419type MockDomainSecretStore_Set_Call struct {
420	*mock.Call
421}
422
423// Set is a helper method to define mock.On call
424//   - domain string
425//   - secrets map[string]string
426func (_e *MockDomainSecretStore_Expecter) Set(domain interface{}, secrets interface{}) *MockDomainSecretStore_Set_Call {
427	return &MockDomainSecretStore_Set_Call{Call: _e.mock.On("Set", domain, secrets)}
428}
429
430func (_c *MockDomainSecretStore_Set_Call) Run(run func(domain string, secrets map[string]string)) *MockDomainSecretStore_Set_Call {
431	_c.Call.Run(func(args mock.Arguments) {
432		var arg0 string
433		if args[0] != nil {
434			arg0 = args[0].(string)
435		}
436		var arg1 map[string]string
437		if args[1] != nil {
438			arg1 = args[1].(map[string]string)
439		}
440		run(
441			arg0,
442			arg1,
443		)
444	})
445	return _c
446}
447
448func (_c *MockDomainSecretStore_Set_Call) Return(err error) *MockDomainSecretStore_Set_Call {
449	_c.Call.Return(err)
450	return _c
451}
452
453func (_c *MockDomainSecretStore_Set_Call) RunAndReturn(run func(domain string, secrets map[string]string) error) *MockDomainSecretStore_Set_Call {
454	_c.Call.Return(run)
455	return _c
456}
457
458// SetAttachment provides a mock function for the type MockDomainSecretStore
459func (_mock *MockDomainSecretStore) SetAttachment(containerName string, secrets map[string]string) error {
460	ret := _mock.Called(containerName, secrets)
461
462	if len(ret) == 0 {
463		panic("no return value specified for SetAttachment")
464	}
465
466	var r0 error
467	if returnFunc, ok := ret.Get(0).(func(string, map[string]string) error); ok {
468		r0 = returnFunc(containerName, secrets)
469	} else {
470		r0 = ret.Error(0)
471	}
472	return r0
473}
474
475// MockDomainSecretStore_SetAttachment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAttachment'
476type MockDomainSecretStore_SetAttachment_Call struct {
477	*mock.Call
478}
479
480// SetAttachment is a helper method to define mock.On call
481//   - containerName string
482//   - secrets map[string]string
483func (_e *MockDomainSecretStore_Expecter) SetAttachment(containerName interface{}, secrets interface{}) *MockDomainSecretStore_SetAttachment_Call {
484	return &MockDomainSecretStore_SetAttachment_Call{Call: _e.mock.On("SetAttachment", containerName, secrets)}
485}
486
487func (_c *MockDomainSecretStore_SetAttachment_Call) Run(run func(containerName string, secrets map[string]string)) *MockDomainSecretStore_SetAttachment_Call {
488	_c.Call.Run(func(args mock.Arguments) {
489		var arg0 string
490		if args[0] != nil {
491			arg0 = args[0].(string)
492		}
493		var arg1 map[string]string
494		if args[1] != nil {
495			arg1 = args[1].(map[string]string)
496		}
497		run(
498			arg0,
499			arg1,
500		)
501	})
502	return _c
503}
504
505func (_c *MockDomainSecretStore_SetAttachment_Call) Return(err error) *MockDomainSecretStore_SetAttachment_Call {
506	_c.Call.Return(err)
507	return _c
508}
509
510func (_c *MockDomainSecretStore_SetAttachment_Call) RunAndReturn(run func(containerName string, secrets map[string]string) error) *MockDomainSecretStore_SetAttachment_Call {
511	_c.Call.Return(run)
512	return _c
513}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close