main 6af0a61

mock_interfaces.go RawHistoryFolder

1// Code generated by MockGen. DO NOT EDIT.
2// Source: internal/interfaces/interfaces.go
3//
4// Generated by this command:
5//
6//	mockgen -source=internal/interfaces/interfaces.go -destination=internal/interfaces/mocks/mock_interfaces.go -package=mocks
7//
8
9// Package mocks is a generated GoMock package.
10package mocks
11
12import (
13	context "context"
14	io "io"
15	http "net/http"
16	os "os"
17	reflect "reflect"
18
19	interfaces "github.com/bnema/archup/internal/interfaces"
20	system "github.com/bnema/archup/internal/system"
21	gomock "go.uber.org/mock/gomock"
22)
23
24// MockFileSystem is a mock of FileSystem interface.
25type MockFileSystem struct {
26	ctrl     *gomock.Controller
27	recorder *MockFileSystemMockRecorder
28	isgomock struct{}
29}
30
31// MockFileSystemMockRecorder is the mock recorder for MockFileSystem.
32type MockFileSystemMockRecorder struct {
33	mock *MockFileSystem
34}
35
36// NewMockFileSystem creates a new mock instance.
37func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem {
38	mock := &MockFileSystem{ctrl: ctrl}
39	mock.recorder = &MockFileSystemMockRecorder{mock}
40	return mock
41}
42
43// EXPECT returns an object that allows the caller to indicate expected use.
44func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder {
45	return m.recorder
46}
47
48// Chmod mocks base method.
49func (m *MockFileSystem) Chmod(name string, mode os.FileMode) error {
50	m.ctrl.T.Helper()
51	ret := m.ctrl.Call(m, "Chmod", name, mode)
52	ret0, _ := ret[0].(error)
53	return ret0
54}
55
56// Chmod indicates an expected call of Chmod.
57func (mr *MockFileSystemMockRecorder) Chmod(name, mode any) *gomock.Call {
58	mr.mock.ctrl.T.Helper()
59	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Chmod", reflect.TypeOf((*MockFileSystem)(nil).Chmod), name, mode)
60}
61
62// Create mocks base method.
63func (m *MockFileSystem) Create(name string) (io.WriteCloser, error) {
64	m.ctrl.T.Helper()
65	ret := m.ctrl.Call(m, "Create", name)
66	ret0, _ := ret[0].(io.WriteCloser)
67	ret1, _ := ret[1].(error)
68	return ret0, ret1
69}
70
71// Create indicates an expected call of Create.
72func (mr *MockFileSystemMockRecorder) Create(name any) *gomock.Call {
73	mr.mock.ctrl.T.Helper()
74	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockFileSystem)(nil).Create), name)
75}
76
77// IsNotExist mocks base method.
78func (m *MockFileSystem) IsNotExist(err error) bool {
79	m.ctrl.T.Helper()
80	ret := m.ctrl.Call(m, "IsNotExist", err)
81	ret0, _ := ret[0].(bool)
82	return ret0
83}
84
85// IsNotExist indicates an expected call of IsNotExist.
86func (mr *MockFileSystemMockRecorder) IsNotExist(err any) *gomock.Call {
87	mr.mock.ctrl.T.Helper()
88	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNotExist", reflect.TypeOf((*MockFileSystem)(nil).IsNotExist), err)
89}
90
91// MkdirAll mocks base method.
92func (m *MockFileSystem) MkdirAll(path string, perm os.FileMode) error {
93	m.ctrl.T.Helper()
94	ret := m.ctrl.Call(m, "MkdirAll", path, perm)
95	ret0, _ := ret[0].(error)
96	return ret0
97}
98
99// MkdirAll indicates an expected call of MkdirAll.
100func (mr *MockFileSystemMockRecorder) MkdirAll(path, perm any) *gomock.Call {
101	mr.mock.ctrl.T.Helper()
102	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MkdirAll", reflect.TypeOf((*MockFileSystem)(nil).MkdirAll), path, perm)
103}
104
105// Open mocks base method.
106func (m *MockFileSystem) Open(name string) (io.ReadCloser, error) {
107	m.ctrl.T.Helper()
108	ret := m.ctrl.Call(m, "Open", name)
109	ret0, _ := ret[0].(io.ReadCloser)
110	ret1, _ := ret[1].(error)
111	return ret0, ret1
112}
113
114// Open indicates an expected call of Open.
115func (mr *MockFileSystemMockRecorder) Open(name any) *gomock.Call {
116	mr.mock.ctrl.T.Helper()
117	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockFileSystem)(nil).Open), name)
118}
119
120// ReadFile mocks base method.
121func (m *MockFileSystem) ReadFile(filename string) ([]byte, error) {
122	m.ctrl.T.Helper()
123	ret := m.ctrl.Call(m, "ReadFile", filename)
124	ret0, _ := ret[0].([]byte)
125	ret1, _ := ret[1].(error)
126	return ret0, ret1
127}
128
129// ReadFile indicates an expected call of ReadFile.
130func (mr *MockFileSystemMockRecorder) ReadFile(filename any) *gomock.Call {
131	mr.mock.ctrl.T.Helper()
132	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadFile", reflect.TypeOf((*MockFileSystem)(nil).ReadFile), filename)
133}
134
135// RemoveAll mocks base method.
136func (m *MockFileSystem) RemoveAll(path string) error {
137	m.ctrl.T.Helper()
138	ret := m.ctrl.Call(m, "RemoveAll", path)
139	ret0, _ := ret[0].(error)
140	return ret0
141}
142
143// RemoveAll indicates an expected call of RemoveAll.
144func (mr *MockFileSystemMockRecorder) RemoveAll(path any) *gomock.Call {
145	mr.mock.ctrl.T.Helper()
146	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAll", reflect.TypeOf((*MockFileSystem)(nil).RemoveAll), path)
147}
148
149// Stat mocks base method.
150func (m *MockFileSystem) Stat(name string) (os.FileInfo, error) {
151	m.ctrl.T.Helper()
152	ret := m.ctrl.Call(m, "Stat", name)
153	ret0, _ := ret[0].(os.FileInfo)
154	ret1, _ := ret[1].(error)
155	return ret0, ret1
156}
157
158// Stat indicates an expected call of Stat.
159func (mr *MockFileSystemMockRecorder) Stat(name any) *gomock.Call {
160	mr.mock.ctrl.T.Helper()
161	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stat", reflect.TypeOf((*MockFileSystem)(nil).Stat), name)
162}
163
164// WriteFile mocks base method.
165func (m *MockFileSystem) WriteFile(filename string, data []byte, perm os.FileMode) error {
166	m.ctrl.T.Helper()
167	ret := m.ctrl.Call(m, "WriteFile", filename, data, perm)
168	ret0, _ := ret[0].(error)
169	return ret0
170}
171
172// WriteFile indicates an expected call of WriteFile.
173func (mr *MockFileSystemMockRecorder) WriteFile(filename, data, perm any) *gomock.Call {
174	mr.mock.ctrl.T.Helper()
175	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteFile", reflect.TypeOf((*MockFileSystem)(nil).WriteFile), filename, data, perm)
176}
177
178// MockCommandExecutor is a mock of CommandExecutor interface.
179type MockCommandExecutor struct {
180	ctrl     *gomock.Controller
181	recorder *MockCommandExecutorMockRecorder
182	isgomock struct{}
183}
184
185// MockCommandExecutorMockRecorder is the mock recorder for MockCommandExecutor.
186type MockCommandExecutorMockRecorder struct {
187	mock *MockCommandExecutor
188}
189
190// NewMockCommandExecutor creates a new mock instance.
191func NewMockCommandExecutor(ctrl *gomock.Controller) *MockCommandExecutor {
192	mock := &MockCommandExecutor{ctrl: ctrl}
193	mock.recorder = &MockCommandExecutorMockRecorder{mock}
194	return mock
195}
196
197// EXPECT returns an object that allows the caller to indicate expected use.
198func (m *MockCommandExecutor) EXPECT() *MockCommandExecutorMockRecorder {
199	return m.recorder
200}
201
202// Execute mocks base method.
203func (m *MockCommandExecutor) Execute(name string, args ...string) ([]byte, error) {
204	m.ctrl.T.Helper()
205	varargs := []any{name}
206	for _, a := range args {
207		varargs = append(varargs, a)
208	}
209	ret := m.ctrl.Call(m, "Execute", varargs...)
210	ret0, _ := ret[0].([]byte)
211	ret1, _ := ret[1].(error)
212	return ret0, ret1
213}
214
215// Execute indicates an expected call of Execute.
216func (mr *MockCommandExecutorMockRecorder) Execute(name any, args ...any) *gomock.Call {
217	mr.mock.ctrl.T.Helper()
218	varargs := append([]any{name}, args...)
219	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockCommandExecutor)(nil).Execute), varargs...)
220}
221
222// MockSystemExecutor is a mock of SystemExecutor interface.
223type MockSystemExecutor struct {
224	ctrl     *gomock.Controller
225	recorder *MockSystemExecutorMockRecorder
226	isgomock struct{}
227}
228
229// MockSystemExecutorMockRecorder is the mock recorder for MockSystemExecutor.
230type MockSystemExecutorMockRecorder struct {
231	mock *MockSystemExecutor
232}
233
234// NewMockSystemExecutor creates a new mock instance.
235func NewMockSystemExecutor(ctrl *gomock.Controller) *MockSystemExecutor {
236	mock := &MockSystemExecutor{ctrl: ctrl}
237	mock.recorder = &MockSystemExecutorMockRecorder{mock}
238	return mock
239}
240
241// EXPECT returns an object that allows the caller to indicate expected use.
242func (m *MockSystemExecutor) EXPECT() *MockSystemExecutorMockRecorder {
243	return m.recorder
244}
245
246// DetectCPUInfo mocks base method.
247func (m *MockSystemExecutor) DetectCPUInfo() (*system.CPUInfo, error) {
248	m.ctrl.T.Helper()
249	ret := m.ctrl.Call(m, "DetectCPUInfo")
250	ret0, _ := ret[0].(*system.CPUInfo)
251	ret1, _ := ret[1].(error)
252	return ret0, ret1
253}
254
255// DetectCPUInfo indicates an expected call of DetectCPUInfo.
256func (mr *MockSystemExecutorMockRecorder) DetectCPUInfo() *gomock.Call {
257	mr.mock.ctrl.T.Helper()
258	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectCPUInfo", reflect.TypeOf((*MockSystemExecutor)(nil).DetectCPUInfo))
259}
260
261// RunSimple mocks base method.
262func (m *MockSystemExecutor) RunSimple(command string, args ...string) system.CommandResult {
263	m.ctrl.T.Helper()
264	varargs := []any{command}
265	for _, a := range args {
266		varargs = append(varargs, a)
267	}
268	ret := m.ctrl.Call(m, "RunSimple", varargs...)
269	ret0, _ := ret[0].(system.CommandResult)
270	return ret0
271}
272
273// RunSimple indicates an expected call of RunSimple.
274func (mr *MockSystemExecutorMockRecorder) RunSimple(command any, args ...any) *gomock.Call {
275	mr.mock.ctrl.T.Helper()
276	varargs := append([]any{command}, args...)
277	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunSimple", reflect.TypeOf((*MockSystemExecutor)(nil).RunSimple), varargs...)
278}
279
280// MockChrootSession is a mock of ChrootSession interface.
281type MockChrootSession struct {
282	ctrl     *gomock.Controller
283	recorder *MockChrootSessionMockRecorder
284	isgomock struct{}
285}
286
287// MockChrootSessionMockRecorder is the mock recorder for MockChrootSession.
288type MockChrootSessionMockRecorder struct {
289	mock *MockChrootSession
290}
291
292// NewMockChrootSession creates a new mock instance.
293func NewMockChrootSession(ctrl *gomock.Controller) *MockChrootSession {
294	mock := &MockChrootSession{ctrl: ctrl}
295	mock.recorder = &MockChrootSessionMockRecorder{mock}
296	return mock
297}
298
299// EXPECT returns an object that allows the caller to indicate expected use.
300func (m *MockChrootSession) EXPECT() *MockChrootSessionMockRecorder {
301	return m.recorder
302}
303
304// Close mocks base method.
305func (m *MockChrootSession) Close() error {
306	m.ctrl.T.Helper()
307	ret := m.ctrl.Call(m, "Close")
308	ret0, _ := ret[0].(error)
309	return ret0
310}
311
312// Close indicates an expected call of Close.
313func (mr *MockChrootSessionMockRecorder) Close() *gomock.Call {
314	mr.mock.ctrl.T.Helper()
315	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockChrootSession)(nil).Close))
316}
317
318// Exec mocks base method.
319func (m *MockChrootSession) Exec(command string) error {
320	m.ctrl.T.Helper()
321	ret := m.ctrl.Call(m, "Exec", command)
322	ret0, _ := ret[0].(error)
323	return ret0
324}
325
326// Exec indicates an expected call of Exec.
327func (mr *MockChrootSessionMockRecorder) Exec(command any) *gomock.Call {
328	mr.mock.ctrl.T.Helper()
329	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockChrootSession)(nil).Exec), command)
330}
331
332// ExecWithContext mocks base method.
333func (m *MockChrootSession) ExecWithContext(ctx context.Context, command string) error {
334	m.ctrl.T.Helper()
335	ret := m.ctrl.Call(m, "ExecWithContext", ctx, command)
336	ret0, _ := ret[0].(error)
337	return ret0
338}
339
340// ExecWithContext indicates an expected call of ExecWithContext.
341func (mr *MockChrootSessionMockRecorder) ExecWithContext(ctx, command any) *gomock.Call {
342	mr.mock.ctrl.T.Helper()
343	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecWithContext", reflect.TypeOf((*MockChrootSession)(nil).ExecWithContext), ctx, command)
344}
345
346// ExecWithOutput mocks base method.
347func (m *MockChrootSession) ExecWithOutput(command string) (string, error) {
348	m.ctrl.T.Helper()
349	ret := m.ctrl.Call(m, "ExecWithOutput", command)
350	ret0, _ := ret[0].(string)
351	ret1, _ := ret[1].(error)
352	return ret0, ret1
353}
354
355// ExecWithOutput indicates an expected call of ExecWithOutput.
356func (mr *MockChrootSessionMockRecorder) ExecWithOutput(command any) *gomock.Call {
357	mr.mock.ctrl.T.Helper()
358	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecWithOutput", reflect.TypeOf((*MockChrootSession)(nil).ExecWithOutput), command)
359}
360
361// ExecWithOutputAndContext mocks base method.
362func (m *MockChrootSession) ExecWithOutputAndContext(ctx context.Context, command string) (string, error) {
363	m.ctrl.T.Helper()
364	ret := m.ctrl.Call(m, "ExecWithOutputAndContext", ctx, command)
365	ret0, _ := ret[0].(string)
366	ret1, _ := ret[1].(error)
367	return ret0, ret1
368}
369
370// ExecWithOutputAndContext indicates an expected call of ExecWithOutputAndContext.
371func (mr *MockChrootSessionMockRecorder) ExecWithOutputAndContext(ctx, command any) *gomock.Call {
372	mr.mock.ctrl.T.Helper()
373	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecWithOutputAndContext", reflect.TypeOf((*MockChrootSession)(nil).ExecWithOutputAndContext), ctx, command)
374}
375
376// MockChrootExecutor is a mock of ChrootExecutor interface.
377type MockChrootExecutor struct {
378	ctrl     *gomock.Controller
379	recorder *MockChrootExecutorMockRecorder
380	isgomock struct{}
381}
382
383// MockChrootExecutorMockRecorder is the mock recorder for MockChrootExecutor.
384type MockChrootExecutorMockRecorder struct {
385	mock *MockChrootExecutor
386}
387
388// NewMockChrootExecutor creates a new mock instance.
389func NewMockChrootExecutor(ctrl *gomock.Controller) *MockChrootExecutor {
390	mock := &MockChrootExecutor{ctrl: ctrl}
391	mock.recorder = &MockChrootExecutorMockRecorder{mock}
392	return mock
393}
394
395// EXPECT returns an object that allows the caller to indicate expected use.
396func (m *MockChrootExecutor) EXPECT() *MockChrootExecutorMockRecorder {
397	return m.recorder
398}
399
400// BeginSession mocks base method.
401func (m *MockChrootExecutor) BeginSession(logPath, mountPoint string) (interfaces.ChrootSession, error) {
402	m.ctrl.T.Helper()
403	ret := m.ctrl.Call(m, "BeginSession", logPath, mountPoint)
404	ret0, _ := ret[0].(interfaces.ChrootSession)
405	ret1, _ := ret[1].(error)
406	return ret0, ret1
407}
408
409// BeginSession indicates an expected call of BeginSession.
410func (mr *MockChrootExecutorMockRecorder) BeginSession(logPath, mountPoint any) *gomock.Call {
411	mr.mock.ctrl.T.Helper()
412	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginSession", reflect.TypeOf((*MockChrootExecutor)(nil).BeginSession), logPath, mountPoint)
413}
414
415// BeginSessionWithContext mocks base method.
416func (m *MockChrootExecutor) BeginSessionWithContext(ctx context.Context, logPath, mountPoint string) (interfaces.ChrootSession, error) {
417	m.ctrl.T.Helper()
418	ret := m.ctrl.Call(m, "BeginSessionWithContext", ctx, logPath, mountPoint)
419	ret0, _ := ret[0].(interfaces.ChrootSession)
420	ret1, _ := ret[1].(error)
421	return ret0, ret1
422}
423
424// BeginSessionWithContext indicates an expected call of BeginSessionWithContext.
425func (mr *MockChrootExecutorMockRecorder) BeginSessionWithContext(ctx, logPath, mountPoint any) *gomock.Call {
426	mr.mock.ctrl.T.Helper()
427	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginSessionWithContext", reflect.TypeOf((*MockChrootExecutor)(nil).BeginSessionWithContext), ctx, logPath, mountPoint)
428}
429
430// ChrootExec mocks base method.
431func (m *MockChrootExecutor) ChrootExec(logPath, mountPoint, command string, args ...string) error {
432	m.ctrl.T.Helper()
433	varargs := []any{logPath, mountPoint, command}
434	for _, a := range args {
435		varargs = append(varargs, a)
436	}
437	ret := m.ctrl.Call(m, "ChrootExec", varargs...)
438	ret0, _ := ret[0].(error)
439	return ret0
440}
441
442// ChrootExec indicates an expected call of ChrootExec.
443func (mr *MockChrootExecutorMockRecorder) ChrootExec(logPath, mountPoint, command any, args ...any) *gomock.Call {
444	mr.mock.ctrl.T.Helper()
445	varargs := append([]any{logPath, mountPoint, command}, args...)
446	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChrootExec", reflect.TypeOf((*MockChrootExecutor)(nil).ChrootExec), varargs...)
447}
448
449// ChrootExecWithContext mocks base method.
450func (m *MockChrootExecutor) ChrootExecWithContext(ctx context.Context, logPath, mountPoint, command string) error {
451	m.ctrl.T.Helper()
452	ret := m.ctrl.Call(m, "ChrootExecWithContext", ctx, logPath, mountPoint, command)
453	ret0, _ := ret[0].(error)
454	return ret0
455}
456
457// ChrootExecWithContext indicates an expected call of ChrootExecWithContext.
458func (mr *MockChrootExecutorMockRecorder) ChrootExecWithContext(ctx, logPath, mountPoint, command any) *gomock.Call {
459	mr.mock.ctrl.T.Helper()
460	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChrootExecWithContext", reflect.TypeOf((*MockChrootExecutor)(nil).ChrootExecWithContext), ctx, logPath, mountPoint, command)
461}
462
463// ChrootExecWithOutput mocks base method.
464func (m *MockChrootExecutor) ChrootExecWithOutput(logPath, mountPoint, command string, args ...string) (string, error) {
465	m.ctrl.T.Helper()
466	varargs := []any{logPath, mountPoint, command}
467	for _, a := range args {
468		varargs = append(varargs, a)
469	}
470	ret := m.ctrl.Call(m, "ChrootExecWithOutput", varargs...)
471	ret0, _ := ret[0].(string)
472	ret1, _ := ret[1].(error)
473	return ret0, ret1
474}
475
476// ChrootExecWithOutput indicates an expected call of ChrootExecWithOutput.
477func (mr *MockChrootExecutorMockRecorder) ChrootExecWithOutput(logPath, mountPoint, command any, args ...any) *gomock.Call {
478	mr.mock.ctrl.T.Helper()
479	varargs := append([]any{logPath, mountPoint, command}, args...)
480	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChrootExecWithOutput", reflect.TypeOf((*MockChrootExecutor)(nil).ChrootExecWithOutput), varargs...)
481}
482
483// ChrootExecWithOutputAndContext mocks base method.
484func (m *MockChrootExecutor) ChrootExecWithOutputAndContext(ctx context.Context, logPath, mountPoint, command string, args ...string) (string, error) {
485	m.ctrl.T.Helper()
486	varargs := []any{ctx, logPath, mountPoint, command}
487	for _, a := range args {
488		varargs = append(varargs, a)
489	}
490	ret := m.ctrl.Call(m, "ChrootExecWithOutputAndContext", varargs...)
491	ret0, _ := ret[0].(string)
492	ret1, _ := ret[1].(error)
493	return ret0, ret1
494}
495
496// ChrootExecWithOutputAndContext indicates an expected call of ChrootExecWithOutputAndContext.
497func (mr *MockChrootExecutorMockRecorder) ChrootExecWithOutputAndContext(ctx, logPath, mountPoint, command any, args ...any) *gomock.Call {
498	mr.mock.ctrl.T.Helper()
499	varargs := append([]any{ctx, logPath, mountPoint, command}, args...)
500	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChrootExecWithOutputAndContext", reflect.TypeOf((*MockChrootExecutor)(nil).ChrootExecWithOutputAndContext), varargs...)
501}
502
503// ChrootExecWithStdin mocks base method.
504func (m *MockChrootExecutor) ChrootExecWithStdin(logPath, mountPoint, command, stdin string) error {
505	m.ctrl.T.Helper()
506	ret := m.ctrl.Call(m, "ChrootExecWithStdin", logPath, mountPoint, command, stdin)
507	ret0, _ := ret[0].(error)
508	return ret0
509}
510
511// ChrootExecWithStdin indicates an expected call of ChrootExecWithStdin.
512func (mr *MockChrootExecutorMockRecorder) ChrootExecWithStdin(logPath, mountPoint, command, stdin any) *gomock.Call {
513	mr.mock.ctrl.T.Helper()
514	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChrootExecWithStdin", reflect.TypeOf((*MockChrootExecutor)(nil).ChrootExecWithStdin), logPath, mountPoint, command, stdin)
515}
516
517// ChrootPacman mocks base method.
518func (m *MockChrootExecutor) ChrootPacman(logPath, mountPoint, operation string, packages ...string) error {
519	m.ctrl.T.Helper()
520	varargs := []any{logPath, mountPoint, operation}
521	for _, a := range packages {
522		varargs = append(varargs, a)
523	}
524	ret := m.ctrl.Call(m, "ChrootPacman", varargs...)
525	ret0, _ := ret[0].(error)
526	return ret0
527}
528
529// ChrootPacman indicates an expected call of ChrootPacman.
530func (mr *MockChrootExecutorMockRecorder) ChrootPacman(logPath, mountPoint, operation any, packages ...any) *gomock.Call {
531	mr.mock.ctrl.T.Helper()
532	varargs := append([]any{logPath, mountPoint, operation}, packages...)
533	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChrootPacman", reflect.TypeOf((*MockChrootExecutor)(nil).ChrootPacman), varargs...)
534}
535
536// ChrootSystemctl mocks base method.
537func (m *MockChrootExecutor) ChrootSystemctl(logPath, mountPoint, action, service string) error {
538	m.ctrl.T.Helper()
539	ret := m.ctrl.Call(m, "ChrootSystemctl", logPath, mountPoint, action, service)
540	ret0, _ := ret[0].(error)
541	return ret0
542}
543
544// ChrootSystemctl indicates an expected call of ChrootSystemctl.
545func (mr *MockChrootExecutorMockRecorder) ChrootSystemctl(logPath, mountPoint, action, service any) *gomock.Call {
546	mr.mock.ctrl.T.Helper()
547	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChrootSystemctl", reflect.TypeOf((*MockChrootExecutor)(nil).ChrootSystemctl), logPath, mountPoint, action, service)
548}
549
550// DownloadAndInstallPackages mocks base method.
551func (m *MockChrootExecutor) DownloadAndInstallPackages(logPath, chrootPath string, urls ...string) error {
552	m.ctrl.T.Helper()
553	varargs := []any{logPath, chrootPath}
554	for _, a := range urls {
555		varargs = append(varargs, a)
556	}
557	ret := m.ctrl.Call(m, "DownloadAndInstallPackages", varargs...)
558	ret0, _ := ret[0].(error)
559	return ret0
560}
561
562// DownloadAndInstallPackages indicates an expected call of DownloadAndInstallPackages.
563func (mr *MockChrootExecutorMockRecorder) DownloadAndInstallPackages(logPath, chrootPath any, urls ...any) *gomock.Call {
564	mr.mock.ctrl.T.Helper()
565	varargs := append([]any{logPath, chrootPath}, urls...)
566	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadAndInstallPackages", reflect.TypeOf((*MockChrootExecutor)(nil).DownloadAndInstallPackages), varargs...)
567}
568
569// MockHTTPClient is a mock of HTTPClient interface.
570type MockHTTPClient struct {
571	ctrl     *gomock.Controller
572	recorder *MockHTTPClientMockRecorder
573	isgomock struct{}
574}
575
576// MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.
577type MockHTTPClientMockRecorder struct {
578	mock *MockHTTPClient
579}
580
581// NewMockHTTPClient creates a new mock instance.
582func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient {
583	mock := &MockHTTPClient{ctrl: ctrl}
584	mock.recorder = &MockHTTPClientMockRecorder{mock}
585	return mock
586}
587
588// EXPECT returns an object that allows the caller to indicate expected use.
589func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder {
590	return m.recorder
591}
592
593// Get mocks base method.
594func (m *MockHTTPClient) Get(url string) (*http.Response, error) {
595	m.ctrl.T.Helper()
596	ret := m.ctrl.Call(m, "Get", url)
597	ret0, _ := ret[0].(*http.Response)
598	ret1, _ := ret[1].(error)
599	return ret0, ret1
600}
601
602// Get indicates an expected call of Get.
603func (mr *MockHTTPClientMockRecorder) Get(url any) *gomock.Call {
604	mr.mock.ctrl.T.Helper()
605	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockHTTPClient)(nil).Get), url)
606}
607
608// MockConfigSaver is a mock of ConfigSaver interface.
609type MockConfigSaver struct {
610	ctrl     *gomock.Controller
611	recorder *MockConfigSaverMockRecorder
612	isgomock struct{}
613}
614
615// MockConfigSaverMockRecorder is the mock recorder for MockConfigSaver.
616type MockConfigSaverMockRecorder struct {
617	mock *MockConfigSaver
618}
619
620// NewMockConfigSaver creates a new mock instance.
621func NewMockConfigSaver(ctrl *gomock.Controller) *MockConfigSaver {
622	mock := &MockConfigSaver{ctrl: ctrl}
623	mock.recorder = &MockConfigSaverMockRecorder{mock}
624	return mock
625}
626
627// EXPECT returns an object that allows the caller to indicate expected use.
628func (m *MockConfigSaver) EXPECT() *MockConfigSaverMockRecorder {
629	return m.recorder
630}
631
632// Save mocks base method.
633func (m *MockConfigSaver) Save() error {
634	m.ctrl.T.Helper()
635	ret := m.ctrl.Call(m, "Save")
636	ret0, _ := ret[0].(error)
637	return ret0
638}
639
640// Save indicates an expected call of Save.
641func (mr *MockConfigSaverMockRecorder) Save() *gomock.Call {
642	mr.mock.ctrl.T.Helper()
643	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Save", reflect.TypeOf((*MockConfigSaver)(nil).Save))
644}

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 1

Tags 0

    ↑↓ moveenter openesc close