v2.10.1 43db1bb

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// 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// GetAllAttachment provides a mock function for the type MockDomainSecretStore
159func (_mock *MockDomainSecretStore) GetAllAttachment(containerName string) (map[string]string, error) {
160	ret := _mock.Called(containerName)
161
162	if len(ret) == 0 {
163		panic("no return value specified for GetAllAttachment")
164	}
165
166	var r0 map[string]string
167	var r1 error
168	if returnFunc, ok := ret.Get(0).(func(string) (map[string]string, error)); ok {
169		return returnFunc(containerName)
170	}
171	if returnFunc, ok := ret.Get(0).(func(string) map[string]string); ok {
172		r0 = returnFunc(containerName)
173	} else {
174		if ret.Get(0) != nil {
175			r0 = ret.Get(0).(map[string]string)
176		}
177	}
178	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
179		r1 = returnFunc(containerName)
180	} else {
181		r1 = ret.Error(1)
182	}
183	return r0, r1
184}
185
186// MockDomainSecretStore_GetAllAttachment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAttachment'
187type MockDomainSecretStore_GetAllAttachment_Call struct {
188	*mock.Call
189}
190
191// GetAllAttachment is a helper method to define mock.On call
192//   - containerName string
193func (_e *MockDomainSecretStore_Expecter) GetAllAttachment(containerName interface{}) *MockDomainSecretStore_GetAllAttachment_Call {
194	return &MockDomainSecretStore_GetAllAttachment_Call{Call: _e.mock.On("GetAllAttachment", containerName)}
195}
196
197func (_c *MockDomainSecretStore_GetAllAttachment_Call) Run(run func(containerName string)) *MockDomainSecretStore_GetAllAttachment_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_GetAllAttachment_Call) Return(stringToString map[string]string, err error) *MockDomainSecretStore_GetAllAttachment_Call {
211	_c.Call.Return(stringToString, err)
212	return _c
213}
214
215func (_c *MockDomainSecretStore_GetAllAttachment_Call) RunAndReturn(run func(containerName string) (map[string]string, error)) *MockDomainSecretStore_GetAllAttachment_Call {
216	_c.Call.Return(run)
217	return _c
218}
219
220// ListAttachmentKeys provides a mock function for the type MockDomainSecretStore
221func (_mock *MockDomainSecretStore) ListAttachmentKeys(domain string) ([]out.AttachmentSecrets, error) {
222	ret := _mock.Called(domain)
223
224	if len(ret) == 0 {
225		panic("no return value specified for ListAttachmentKeys")
226	}
227
228	var r0 []out.AttachmentSecrets
229	var r1 error
230	if returnFunc, ok := ret.Get(0).(func(string) ([]out.AttachmentSecrets, error)); ok {
231		return returnFunc(domain)
232	}
233	if returnFunc, ok := ret.Get(0).(func(string) []out.AttachmentSecrets); ok {
234		r0 = returnFunc(domain)
235	} else {
236		if ret.Get(0) != nil {
237			r0 = ret.Get(0).([]out.AttachmentSecrets)
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_ListAttachmentKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAttachmentKeys'
249type MockDomainSecretStore_ListAttachmentKeys_Call struct {
250	*mock.Call
251}
252
253// ListAttachmentKeys is a helper method to define mock.On call
254//   - domain string
255func (_e *MockDomainSecretStore_Expecter) ListAttachmentKeys(domain interface{}) *MockDomainSecretStore_ListAttachmentKeys_Call {
256	return &MockDomainSecretStore_ListAttachmentKeys_Call{Call: _e.mock.On("ListAttachmentKeys", domain)}
257}
258
259func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) Run(run func(domain string)) *MockDomainSecretStore_ListAttachmentKeys_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_ListAttachmentKeys_Call) Return(attachmentSecretss []out.AttachmentSecrets, err error) *MockDomainSecretStore_ListAttachmentKeys_Call {
273	_c.Call.Return(attachmentSecretss, err)
274	return _c
275}
276
277func (_c *MockDomainSecretStore_ListAttachmentKeys_Call) RunAndReturn(run func(domain string) ([]out.AttachmentSecrets, error)) *MockDomainSecretStore_ListAttachmentKeys_Call {
278	_c.Call.Return(run)
279	return _c
280}
281
282// ListKeys provides a mock function for the type MockDomainSecretStore
283func (_mock *MockDomainSecretStore) ListKeys(domain string) ([]string, error) {
284	ret := _mock.Called(domain)
285
286	if len(ret) == 0 {
287		panic("no return value specified for ListKeys")
288	}
289
290	var r0 []string
291	var r1 error
292	if returnFunc, ok := ret.Get(0).(func(string) ([]string, error)); ok {
293		return returnFunc(domain)
294	}
295	if returnFunc, ok := ret.Get(0).(func(string) []string); ok {
296		r0 = returnFunc(domain)
297	} else {
298		if ret.Get(0) != nil {
299			r0 = ret.Get(0).([]string)
300		}
301	}
302	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
303		r1 = returnFunc(domain)
304	} else {
305		r1 = ret.Error(1)
306	}
307	return r0, r1
308}
309
310// MockDomainSecretStore_ListKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeys'
311type MockDomainSecretStore_ListKeys_Call struct {
312	*mock.Call
313}
314
315// ListKeys is a helper method to define mock.On call
316//   - domain string
317func (_e *MockDomainSecretStore_Expecter) ListKeys(domain interface{}) *MockDomainSecretStore_ListKeys_Call {
318	return &MockDomainSecretStore_ListKeys_Call{Call: _e.mock.On("ListKeys", domain)}
319}
320
321func (_c *MockDomainSecretStore_ListKeys_Call) Run(run func(domain string)) *MockDomainSecretStore_ListKeys_Call {
322	_c.Call.Run(func(args mock.Arguments) {
323		var arg0 string
324		if args[0] != nil {
325			arg0 = args[0].(string)
326		}
327		run(
328			arg0,
329		)
330	})
331	return _c
332}
333
334func (_c *MockDomainSecretStore_ListKeys_Call) Return(strings []string, err error) *MockDomainSecretStore_ListKeys_Call {
335	_c.Call.Return(strings, err)
336	return _c
337}
338
339func (_c *MockDomainSecretStore_ListKeys_Call) RunAndReturn(run func(domain string) ([]string, error)) *MockDomainSecretStore_ListKeys_Call {
340	_c.Call.Return(run)
341	return _c
342}
343
344// Set provides a mock function for the type MockDomainSecretStore
345func (_mock *MockDomainSecretStore) Set(domain string, secrets map[string]string) error {
346	ret := _mock.Called(domain, secrets)
347
348	if len(ret) == 0 {
349		panic("no return value specified for Set")
350	}
351
352	var r0 error
353	if returnFunc, ok := ret.Get(0).(func(string, map[string]string) error); ok {
354		r0 = returnFunc(domain, secrets)
355	} else {
356		r0 = ret.Error(0)
357	}
358	return r0
359}
360
361// MockDomainSecretStore_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
362type MockDomainSecretStore_Set_Call struct {
363	*mock.Call
364}
365
366// Set is a helper method to define mock.On call
367//   - domain string
368//   - secrets map[string]string
369func (_e *MockDomainSecretStore_Expecter) Set(domain interface{}, secrets interface{}) *MockDomainSecretStore_Set_Call {
370	return &MockDomainSecretStore_Set_Call{Call: _e.mock.On("Set", domain, secrets)}
371}
372
373func (_c *MockDomainSecretStore_Set_Call) Run(run func(domain string, secrets map[string]string)) *MockDomainSecretStore_Set_Call {
374	_c.Call.Run(func(args mock.Arguments) {
375		var arg0 string
376		if args[0] != nil {
377			arg0 = args[0].(string)
378		}
379		var arg1 map[string]string
380		if args[1] != nil {
381			arg1 = args[1].(map[string]string)
382		}
383		run(
384			arg0,
385			arg1,
386		)
387	})
388	return _c
389}
390
391func (_c *MockDomainSecretStore_Set_Call) Return(err error) *MockDomainSecretStore_Set_Call {
392	_c.Call.Return(err)
393	return _c
394}
395
396func (_c *MockDomainSecretStore_Set_Call) RunAndReturn(run func(domain string, secrets map[string]string) error) *MockDomainSecretStore_Set_Call {
397	_c.Call.Return(run)
398	return _c
399}
400
401// SetAttachment provides a mock function for the type MockDomainSecretStore
402func (_mock *MockDomainSecretStore) SetAttachment(containerName string, secrets map[string]string) error {
403	ret := _mock.Called(containerName, secrets)
404
405	if len(ret) == 0 {
406		panic("no return value specified for SetAttachment")
407	}
408
409	var r0 error
410	if returnFunc, ok := ret.Get(0).(func(string, map[string]string) error); ok {
411		r0 = returnFunc(containerName, secrets)
412	} else {
413		r0 = ret.Error(0)
414	}
415	return r0
416}
417
418// MockDomainSecretStore_SetAttachment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAttachment'
419type MockDomainSecretStore_SetAttachment_Call struct {
420	*mock.Call
421}
422
423// SetAttachment is a helper method to define mock.On call
424//   - containerName string
425//   - secrets map[string]string
426func (_e *MockDomainSecretStore_Expecter) SetAttachment(containerName interface{}, secrets interface{}) *MockDomainSecretStore_SetAttachment_Call {
427	return &MockDomainSecretStore_SetAttachment_Call{Call: _e.mock.On("SetAttachment", containerName, secrets)}
428}
429
430func (_c *MockDomainSecretStore_SetAttachment_Call) Run(run func(containerName string, secrets map[string]string)) *MockDomainSecretStore_SetAttachment_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_SetAttachment_Call) Return(err error) *MockDomainSecretStore_SetAttachment_Call {
449	_c.Call.Return(err)
450	return _c
451}
452
453func (_c *MockDomainSecretStore_SetAttachment_Call) RunAndReturn(run func(containerName string, secrets map[string]string) error) *MockDomainSecretStore_SetAttachment_Call {
454	_c.Call.Return(run)
455	return _c
456}

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