detached 950bfdc

refactor(admin): replace NewHandler positional params with HandlerDeps struct

Also regenerates ConfigService mock via mockery to replace manual additions.
commit
950bfdca939cba4b627fe6c99ceb222e685d7223
author
brice · · 2026-03-19 05:48 UTC
parent
2439aa3
signature
unsigned
1 file · +224 -224
M internal/boundaries/in/mocks/mock_config_service.go +224 -224
@@ -386,6 +386,52 @@ func (_c *MockConfigService_GetAllAttachments_Call) RunAndReturn(run func(ctx co
386386 return _c
387387 }
388388
389+// GetAllowedDomains provides a mock function for the type MockConfigService
390+func (_mock *MockConfigService) GetAllowedDomains() []string {
391+ ret := _mock.Called()
392+
393+ if len(ret) == 0 {
394+ panic("no return value specified for GetAllowedDomains")
395+ }
396+
397+ var r0 []string
398+ if returnFunc, ok := ret.Get(0).(func() []string); ok {
399+ r0 = returnFunc()
400+ } else {
401+ if ret.Get(0) != nil {
402+ r0 = ret.Get(0).([]string)
403+ }
404+ }
405+ return r0
406+}
407+
408+// MockConfigService_GetAllowedDomains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllowedDomains'
409+type MockConfigService_GetAllowedDomains_Call struct {
410+ *mock.Call
411+}
412+
413+// GetAllowedDomains is a helper method to define mock.On call
414+func (_e *MockConfigService_Expecter) GetAllowedDomains() *MockConfigService_GetAllowedDomains_Call {
415+ return &MockConfigService_GetAllowedDomains_Call{Call: _e.mock.On("GetAllowedDomains")}
416+}
417+
418+func (_c *MockConfigService_GetAllowedDomains_Call) Run(run func()) *MockConfigService_GetAllowedDomains_Call {
419+ _c.Call.Run(func(args mock.Arguments) {
420+ run()
421+ })
422+ return _c
423+}
424+
425+func (_c *MockConfigService_GetAllowedDomains_Call) Return(strings []string) *MockConfigService_GetAllowedDomains_Call {
426+ _c.Call.Return(strings)
427+ return _c
428+}
429+
430+func (_c *MockConfigService_GetAllowedDomains_Call) RunAndReturn(run func() []string) *MockConfigService_GetAllowedDomains_Call {
431+ _c.Call.Return(run)
432+ return _c
433+}
434+
389435 // GetAttachmentsFor provides a mock function for the type MockConfigService
390436 func (_mock *MockConfigService) GetAttachmentsFor(ctx context.Context, domainOrGroup string) ([]string, error) {
391437 ret := _mock.Called(ctx, domainOrGroup)
@@ -650,6 +696,96 @@ func (_c *MockConfigService_GetNetworkPrefix_Call) RunAndReturn(run func() strin
650696 return _c
651697 }
652698
699+// GetPreviewConfig provides a mock function for the type MockConfigService
700+func (_mock *MockConfigService) GetPreviewConfig() domain.PreviewConfig {
701+ ret := _mock.Called()
702+
703+ if len(ret) == 0 {
704+ panic("no return value specified for GetPreviewConfig")
705+ }
706+
707+ var r0 domain.PreviewConfig
708+ if returnFunc, ok := ret.Get(0).(func() domain.PreviewConfig); ok {
709+ r0 = returnFunc()
710+ } else {
711+ r0 = ret.Get(0).(domain.PreviewConfig)
712+ }
713+ return r0
714+}
715+
716+// MockConfigService_GetPreviewConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewConfig'
717+type MockConfigService_GetPreviewConfig_Call struct {
718+ *mock.Call
719+}
720+
721+// GetPreviewConfig is a helper method to define mock.On call
722+func (_e *MockConfigService_Expecter) GetPreviewConfig() *MockConfigService_GetPreviewConfig_Call {
723+ return &MockConfigService_GetPreviewConfig_Call{Call: _e.mock.On("GetPreviewConfig")}
724+}
725+
726+func (_c *MockConfigService_GetPreviewConfig_Call) Run(run func()) *MockConfigService_GetPreviewConfig_Call {
727+ _c.Call.Run(func(args mock.Arguments) {
728+ run()
729+ })
730+ return _c
731+}
732+
733+func (_c *MockConfigService_GetPreviewConfig_Call) Return(previewConfig domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
734+ _c.Call.Return(previewConfig)
735+ return _c
736+}
737+
738+func (_c *MockConfigService_GetPreviewConfig_Call) RunAndReturn(run func() domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
739+ _c.Call.Return(run)
740+ return _c
741+}
742+
743+// GetPreviewTagPatterns provides a mock function for the type MockConfigService
744+func (_mock *MockConfigService) GetPreviewTagPatterns() []string {
745+ ret := _mock.Called()
746+
747+ if len(ret) == 0 {
748+ panic("no return value specified for GetPreviewTagPatterns")
749+ }
750+
751+ var r0 []string
752+ if returnFunc, ok := ret.Get(0).(func() []string); ok {
753+ r0 = returnFunc()
754+ } else {
755+ if ret.Get(0) != nil {
756+ r0 = ret.Get(0).([]string)
757+ }
758+ }
759+ return r0
760+}
761+
762+// MockConfigService_GetPreviewTagPatterns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewTagPatterns'
763+type MockConfigService_GetPreviewTagPatterns_Call struct {
764+ *mock.Call
765+}
766+
767+// GetPreviewTagPatterns is a helper method to define mock.On call
768+func (_e *MockConfigService_Expecter) GetPreviewTagPatterns() *MockConfigService_GetPreviewTagPatterns_Call {
769+ return &MockConfigService_GetPreviewTagPatterns_Call{Call: _e.mock.On("GetPreviewTagPatterns")}
770+}
771+
772+func (_c *MockConfigService_GetPreviewTagPatterns_Call) Run(run func()) *MockConfigService_GetPreviewTagPatterns_Call {
773+ _c.Call.Run(func(args mock.Arguments) {
774+ run()
775+ })
776+ return _c
777+}
778+
779+func (_c *MockConfigService_GetPreviewTagPatterns_Call) Return(strings []string) *MockConfigService_GetPreviewTagPatterns_Call {
780+ _c.Call.Return(strings)
781+ return _c
782+}
783+
784+func (_c *MockConfigService_GetPreviewTagPatterns_Call) RunAndReturn(run func() []string) *MockConfigService_GetPreviewTagPatterns_Call {
785+ _c.Call.Return(run)
786+ return _c
787+}
788+
653789 // GetRegistryDomain provides a mock function for the type MockConfigService
654790 func (_mock *MockConfigService) GetRegistryDomain() string {
655791 ret := _mock.Called()
@@ -903,6 +1039,50 @@ func (_c *MockConfigService_GetServerPort_Call) RunAndReturn(run func() int) *Mo
9031039 return _c
9041040 }
9051041
1042+// IsAutoEnabled provides a mock function for the type MockConfigService
1043+func (_mock *MockConfigService) IsAutoEnabled() bool {
1044+ ret := _mock.Called()
1045+
1046+ if len(ret) == 0 {
1047+ panic("no return value specified for IsAutoEnabled")
1048+ }
1049+
1050+ var r0 bool
1051+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1052+ r0 = returnFunc()
1053+ } else {
1054+ r0 = ret.Get(0).(bool)
1055+ }
1056+ return r0
1057+}
1058+
1059+// MockConfigService_IsAutoEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoEnabled'
1060+type MockConfigService_IsAutoEnabled_Call struct {
1061+ *mock.Call
1062+}
1063+
1064+// IsAutoEnabled is a helper method to define mock.On call
1065+func (_e *MockConfigService_Expecter) IsAutoEnabled() *MockConfigService_IsAutoEnabled_Call {
1066+ return &MockConfigService_IsAutoEnabled_Call{Call: _e.mock.On("IsAutoEnabled")}
1067+}
1068+
1069+func (_c *MockConfigService_IsAutoEnabled_Call) Run(run func()) *MockConfigService_IsAutoEnabled_Call {
1070+ _c.Call.Run(func(args mock.Arguments) {
1071+ run()
1072+ })
1073+ return _c
1074+}
1075+
1076+func (_c *MockConfigService_IsAutoEnabled_Call) Return(b bool) *MockConfigService_IsAutoEnabled_Call {
1077+ _c.Call.Return(b)
1078+ return _c
1079+}
1080+
1081+func (_c *MockConfigService_IsAutoEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsAutoEnabled_Call {
1082+ _c.Call.Return(run)
1083+ return _c
1084+}
1085+
9061086 // IsAutoRouteEnabled provides a mock function for the type MockConfigService
9071087 func (_mock *MockConfigService) IsAutoRouteEnabled() bool {
9081088 ret := _mock.Called()
@@ -991,6 +1171,50 @@ func (_c *MockConfigService_IsNetworkIsolationEnabled_Call) RunAndReturn(run fun
9911171 return _c
9921172 }
9931173
1174+// IsPreviewEnabled provides a mock function for the type MockConfigService
1175+func (_mock *MockConfigService) IsPreviewEnabled() bool {
1176+ ret := _mock.Called()
1177+
1178+ if len(ret) == 0 {
1179+ panic("no return value specified for IsPreviewEnabled")
1180+ }
1181+
1182+ var r0 bool
1183+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1184+ r0 = returnFunc()
1185+ } else {
1186+ r0 = ret.Get(0).(bool)
1187+ }
1188+ return r0
1189+}
1190+
1191+// MockConfigService_IsPreviewEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPreviewEnabled'
1192+type MockConfigService_IsPreviewEnabled_Call struct {
1193+ *mock.Call
1194+}
1195+
1196+// IsPreviewEnabled is a helper method to define mock.On call
1197+func (_e *MockConfigService_Expecter) IsPreviewEnabled() *MockConfigService_IsPreviewEnabled_Call {
1198+ return &MockConfigService_IsPreviewEnabled_Call{Call: _e.mock.On("IsPreviewEnabled")}
1199+}
1200+
1201+func (_c *MockConfigService_IsPreviewEnabled_Call) Run(run func()) *MockConfigService_IsPreviewEnabled_Call {
1202+ _c.Call.Run(func(args mock.Arguments) {
1203+ run()
1204+ })
1205+ return _c
1206+}
1207+
1208+func (_c *MockConfigService_IsPreviewEnabled_Call) Return(b bool) *MockConfigService_IsPreviewEnabled_Call {
1209+ _c.Call.Return(b)
1210+ return _c
1211+}
1212+
1213+func (_c *MockConfigService_IsPreviewEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsPreviewEnabled_Call {
1214+ _c.Call.Return(run)
1215+ return _c
1216+}
1217+
9941218 // Load provides a mock function for the type MockConfigService
9951219 func (_mock *MockConfigService) Load(ctx context.Context) error {
9961220 ret := _mock.Called(ctx)
@@ -1378,230 +1602,6 @@ func (_c *MockConfigService_UpdateRoute_Call) RunAndReturn(run func(ctx context.
13781602 return _c
13791603 }
13801604
1381-// GetPreviewConfig provides a mock function for the type MockConfigService
1382-func (_mock *MockConfigService) GetPreviewConfig() domain.PreviewConfig {
1383- ret := _mock.Called()
1384-
1385- if len(ret) == 0 {
1386- panic("no return value specified for GetPreviewConfig")
1387- }
1388-
1389- var r0 domain.PreviewConfig
1390- if returnFunc, ok := ret.Get(0).(func() domain.PreviewConfig); ok {
1391- r0 = returnFunc()
1392- } else {
1393- r0 = ret.Get(0).(domain.PreviewConfig)
1394- }
1395- return r0
1396-}
1397-
1398-// MockConfigService_GetPreviewConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewConfig'
1399-type MockConfigService_GetPreviewConfig_Call struct {
1400- *mock.Call
1401-}
1402-
1403-// GetPreviewConfig is a helper method to define mock.On call
1404-func (_e *MockConfigService_Expecter) GetPreviewConfig() *MockConfigService_GetPreviewConfig_Call {
1405- return &MockConfigService_GetPreviewConfig_Call{Call: _e.mock.On("GetPreviewConfig")}
1406-}
1407-
1408-func (_c *MockConfigService_GetPreviewConfig_Call) Run(run func()) *MockConfigService_GetPreviewConfig_Call {
1409- _c.Call.Run(func(args mock.Arguments) {
1410- run()
1411- })
1412- return _c
1413-}
1414-
1415-func (_c *MockConfigService_GetPreviewConfig_Call) Return(cfg domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
1416- _c.Call.Return(cfg)
1417- return _c
1418-}
1419-
1420-func (_c *MockConfigService_GetPreviewConfig_Call) RunAndReturn(run func() domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
1421- _c.Call.Return(run)
1422- return _c
1423-}
1424-
1425-// IsPreviewEnabled provides a mock function for the type MockConfigService
1426-func (_mock *MockConfigService) IsPreviewEnabled() bool {
1427- ret := _mock.Called()
1428-
1429- if len(ret) == 0 {
1430- panic("no return value specified for IsPreviewEnabled")
1431- }
1432-
1433- var r0 bool
1434- if returnFunc, ok := ret.Get(0).(func() bool); ok {
1435- r0 = returnFunc()
1436- } else {
1437- r0 = ret.Get(0).(bool)
1438- }
1439- return r0
1440-}
1441-
1442-// MockConfigService_IsPreviewEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPreviewEnabled'
1443-type MockConfigService_IsPreviewEnabled_Call struct {
1444- *mock.Call
1445-}
1446-
1447-// IsPreviewEnabled is a helper method to define mock.On call
1448-func (_e *MockConfigService_Expecter) IsPreviewEnabled() *MockConfigService_IsPreviewEnabled_Call {
1449- return &MockConfigService_IsPreviewEnabled_Call{Call: _e.mock.On("IsPreviewEnabled")}
1450-}
1451-
1452-func (_c *MockConfigService_IsPreviewEnabled_Call) Run(run func()) *MockConfigService_IsPreviewEnabled_Call {
1453- _c.Call.Run(func(args mock.Arguments) {
1454- run()
1455- })
1456- return _c
1457-}
1458-
1459-func (_c *MockConfigService_IsPreviewEnabled_Call) Return(b bool) *MockConfigService_IsPreviewEnabled_Call {
1460- _c.Call.Return(b)
1461- return _c
1462-}
1463-
1464-func (_c *MockConfigService_IsPreviewEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsPreviewEnabled_Call {
1465- _c.Call.Return(run)
1466- return _c
1467-}
1468-
1469-// IsAutoEnabled provides a mock function for the type MockConfigService
1470-func (_mock *MockConfigService) IsAutoEnabled() bool {
1471- ret := _mock.Called()
1472-
1473- if len(ret) == 0 {
1474- panic("no return value specified for IsAutoEnabled")
1475- }
1476-
1477- var r0 bool
1478- if returnFunc, ok := ret.Get(0).(func() bool); ok {
1479- r0 = returnFunc()
1480- } else {
1481- r0 = ret.Get(0).(bool)
1482- }
1483- return r0
1484-}
1485-
1486-// MockConfigService_IsAutoEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoEnabled'
1487-type MockConfigService_IsAutoEnabled_Call struct {
1488- *mock.Call
1489-}
1490-
1491-// IsAutoEnabled is a helper method to define mock.On call
1492-func (_e *MockConfigService_Expecter) IsAutoEnabled() *MockConfigService_IsAutoEnabled_Call {
1493- return &MockConfigService_IsAutoEnabled_Call{Call: _e.mock.On("IsAutoEnabled")}
1494-}
1495-
1496-func (_c *MockConfigService_IsAutoEnabled_Call) Run(run func()) *MockConfigService_IsAutoEnabled_Call {
1497- _c.Call.Run(func(args mock.Arguments) {
1498- run()
1499- })
1500- return _c
1501-}
1502-
1503-func (_c *MockConfigService_IsAutoEnabled_Call) Return(b bool) *MockConfigService_IsAutoEnabled_Call {
1504- _c.Call.Return(b)
1505- return _c
1506-}
1507-
1508-func (_c *MockConfigService_IsAutoEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsAutoEnabled_Call {
1509- _c.Call.Return(run)
1510- return _c
1511-}
1512-
1513-// GetPreviewTagPatterns provides a mock function for the type MockConfigService
1514-func (_mock *MockConfigService) GetPreviewTagPatterns() []string {
1515- ret := _mock.Called()
1516-
1517- if len(ret) == 0 {
1518- panic("no return value specified for GetPreviewTagPatterns")
1519- }
1520-
1521- var r0 []string
1522- if returnFunc, ok := ret.Get(0).(func() []string); ok {
1523- r0 = returnFunc()
1524- } else {
1525- if ret.Get(0) != nil {
1526- r0 = ret.Get(0).([]string)
1527- }
1528- }
1529- return r0
1530-}
1531-
1532-// MockConfigService_GetPreviewTagPatterns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewTagPatterns'
1533-type MockConfigService_GetPreviewTagPatterns_Call struct {
1534- *mock.Call
1535-}
1536-
1537-// GetPreviewTagPatterns is a helper method to define mock.On call
1538-func (_e *MockConfigService_Expecter) GetPreviewTagPatterns() *MockConfigService_GetPreviewTagPatterns_Call {
1539- return &MockConfigService_GetPreviewTagPatterns_Call{Call: _e.mock.On("GetPreviewTagPatterns")}
1540-}
1541-
1542-func (_c *MockConfigService_GetPreviewTagPatterns_Call) Run(run func()) *MockConfigService_GetPreviewTagPatterns_Call {
1543- _c.Call.Run(func(args mock.Arguments) {
1544- run()
1545- })
1546- return _c
1547-}
1548-
1549-func (_c *MockConfigService_GetPreviewTagPatterns_Call) Return(patterns []string) *MockConfigService_GetPreviewTagPatterns_Call {
1550- _c.Call.Return(patterns)
1551- return _c
1552-}
1553-
1554-func (_c *MockConfigService_GetPreviewTagPatterns_Call) RunAndReturn(run func() []string) *MockConfigService_GetPreviewTagPatterns_Call {
1555- _c.Call.Return(run)
1556- return _c
1557-}
1558-
1559-// GetAllowedDomains provides a mock function for the type MockConfigService
1560-func (_mock *MockConfigService) GetAllowedDomains() []string {
1561- ret := _mock.Called()
1562-
1563- if len(ret) == 0 {
1564- panic("no return value specified for GetAllowedDomains")
1565- }
1566-
1567- var r0 []string
1568- if returnFunc, ok := ret.Get(0).(func() []string); ok {
1569- r0 = returnFunc()
1570- } else {
1571- if ret.Get(0) != nil {
1572- r0 = ret.Get(0).([]string)
1573- }
1574- }
1575- return r0
1576-}
1577-
1578-// MockConfigService_GetAllowedDomains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllowedDomains'
1579-type MockConfigService_GetAllowedDomains_Call struct {
1580- *mock.Call
1581-}
1582-
1583-// GetAllowedDomains is a helper method to define mock.On call
1584-func (_e *MockConfigService_Expecter) GetAllowedDomains() *MockConfigService_GetAllowedDomains_Call {
1585- return &MockConfigService_GetAllowedDomains_Call{Call: _e.mock.On("GetAllowedDomains")}
1586-}
1587-
1588-func (_c *MockConfigService_GetAllowedDomains_Call) Run(run func()) *MockConfigService_GetAllowedDomains_Call {
1589- _c.Call.Run(func(args mock.Arguments) {
1590- run()
1591- })
1592- return _c
1593-}
1594-
1595-func (_c *MockConfigService_GetAllowedDomains_Call) Return(domains []string) *MockConfigService_GetAllowedDomains_Call {
1596- _c.Call.Return(domains)
1597- return _c
1598-}
1599-
1600-func (_c *MockConfigService_GetAllowedDomains_Call) RunAndReturn(run func() []string) *MockConfigService_GetAllowedDomains_Call {
1601- _c.Call.Return(run)
1602- return _c
1603-}
1604-
16051605 // Watch provides a mock function for the type MockConfigService
16061606 func (_mock *MockConfigService) Watch(ctx context.Context, onChange func()) error {
16071607 ret := _mock.Called(ctx, onChange)
@@ -386,6 +386,52 @@ func (_c *MockConfigService_GetAllAttachments_Call) RunAndReturn(run func(ctx co
386 return _c386 return _c
387 }387 }
388 388
389+// GetAllowedDomains provides a mock function for the type MockConfigService
390+func (_mock *MockConfigService) GetAllowedDomains() []string {
391+ ret := _mock.Called()
392+
393+ if len(ret) == 0 {
394+ panic("no return value specified for GetAllowedDomains")
395+ }
396+
397+ var r0 []string
398+ if returnFunc, ok := ret.Get(0).(func() []string); ok {
399+ r0 = returnFunc()
400+ } else {
401+ if ret.Get(0) != nil {
402+ r0 = ret.Get(0).([]string)
403+ }
404+ }
405+ return r0
406+}
407+
408+// MockConfigService_GetAllowedDomains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllowedDomains'
409+type MockConfigService_GetAllowedDomains_Call struct {
410+ *mock.Call
411+}
412+
413+// GetAllowedDomains is a helper method to define mock.On call
414+func (_e *MockConfigService_Expecter) GetAllowedDomains() *MockConfigService_GetAllowedDomains_Call {
415+ return &MockConfigService_GetAllowedDomains_Call{Call: _e.mock.On("GetAllowedDomains")}
416+}
417+
418+func (_c *MockConfigService_GetAllowedDomains_Call) Run(run func()) *MockConfigService_GetAllowedDomains_Call {
419+ _c.Call.Run(func(args mock.Arguments) {
420+ run()
421+ })
422+ return _c
423+}
424+
425+func (_c *MockConfigService_GetAllowedDomains_Call) Return(strings []string) *MockConfigService_GetAllowedDomains_Call {
426+ _c.Call.Return(strings)
427+ return _c
428+}
429+
430+func (_c *MockConfigService_GetAllowedDomains_Call) RunAndReturn(run func() []string) *MockConfigService_GetAllowedDomains_Call {
431+ _c.Call.Return(run)
432+ return _c
433+}
434+
389 // GetAttachmentsFor provides a mock function for the type MockConfigService435 // GetAttachmentsFor provides a mock function for the type MockConfigService
390 func (_mock *MockConfigService) GetAttachmentsFor(ctx context.Context, domainOrGroup string) ([]string, error) {436 func (_mock *MockConfigService) GetAttachmentsFor(ctx context.Context, domainOrGroup string) ([]string, error) {
391 ret := _mock.Called(ctx, domainOrGroup)437 ret := _mock.Called(ctx, domainOrGroup)
@@ -650,6 +696,96 @@ func (_c *MockConfigService_GetNetworkPrefix_Call) RunAndReturn(run func() strin
650 return _c696 return _c
651 }697 }
652 698
699+// GetPreviewConfig provides a mock function for the type MockConfigService
700+func (_mock *MockConfigService) GetPreviewConfig() domain.PreviewConfig {
701+ ret := _mock.Called()
702+
703+ if len(ret) == 0 {
704+ panic("no return value specified for GetPreviewConfig")
705+ }
706+
707+ var r0 domain.PreviewConfig
708+ if returnFunc, ok := ret.Get(0).(func() domain.PreviewConfig); ok {
709+ r0 = returnFunc()
710+ } else {
711+ r0 = ret.Get(0).(domain.PreviewConfig)
712+ }
713+ return r0
714+}
715+
716+// MockConfigService_GetPreviewConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewConfig'
717+type MockConfigService_GetPreviewConfig_Call struct {
718+ *mock.Call
719+}
720+
721+// GetPreviewConfig is a helper method to define mock.On call
722+func (_e *MockConfigService_Expecter) GetPreviewConfig() *MockConfigService_GetPreviewConfig_Call {
723+ return &MockConfigService_GetPreviewConfig_Call{Call: _e.mock.On("GetPreviewConfig")}
724+}
725+
726+func (_c *MockConfigService_GetPreviewConfig_Call) Run(run func()) *MockConfigService_GetPreviewConfig_Call {
727+ _c.Call.Run(func(args mock.Arguments) {
728+ run()
729+ })
730+ return _c
731+}
732+
733+func (_c *MockConfigService_GetPreviewConfig_Call) Return(previewConfig domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
734+ _c.Call.Return(previewConfig)
735+ return _c
736+}
737+
738+func (_c *MockConfigService_GetPreviewConfig_Call) RunAndReturn(run func() domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
739+ _c.Call.Return(run)
740+ return _c
741+}
742+
743+// GetPreviewTagPatterns provides a mock function for the type MockConfigService
744+func (_mock *MockConfigService) GetPreviewTagPatterns() []string {
745+ ret := _mock.Called()
746+
747+ if len(ret) == 0 {
748+ panic("no return value specified for GetPreviewTagPatterns")
749+ }
750+
751+ var r0 []string
752+ if returnFunc, ok := ret.Get(0).(func() []string); ok {
753+ r0 = returnFunc()
754+ } else {
755+ if ret.Get(0) != nil {
756+ r0 = ret.Get(0).([]string)
757+ }
758+ }
759+ return r0
760+}
761+
762+// MockConfigService_GetPreviewTagPatterns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewTagPatterns'
763+type MockConfigService_GetPreviewTagPatterns_Call struct {
764+ *mock.Call
765+}
766+
767+// GetPreviewTagPatterns is a helper method to define mock.On call
768+func (_e *MockConfigService_Expecter) GetPreviewTagPatterns() *MockConfigService_GetPreviewTagPatterns_Call {
769+ return &MockConfigService_GetPreviewTagPatterns_Call{Call: _e.mock.On("GetPreviewTagPatterns")}
770+}
771+
772+func (_c *MockConfigService_GetPreviewTagPatterns_Call) Run(run func()) *MockConfigService_GetPreviewTagPatterns_Call {
773+ _c.Call.Run(func(args mock.Arguments) {
774+ run()
775+ })
776+ return _c
777+}
778+
779+func (_c *MockConfigService_GetPreviewTagPatterns_Call) Return(strings []string) *MockConfigService_GetPreviewTagPatterns_Call {
780+ _c.Call.Return(strings)
781+ return _c
782+}
783+
784+func (_c *MockConfigService_GetPreviewTagPatterns_Call) RunAndReturn(run func() []string) *MockConfigService_GetPreviewTagPatterns_Call {
785+ _c.Call.Return(run)
786+ return _c
787+}
788+
653 // GetRegistryDomain provides a mock function for the type MockConfigService789 // GetRegistryDomain provides a mock function for the type MockConfigService
654 func (_mock *MockConfigService) GetRegistryDomain() string {790 func (_mock *MockConfigService) GetRegistryDomain() string {
655 ret := _mock.Called()791 ret := _mock.Called()
@@ -903,6 +1039,50 @@ func (_c *MockConfigService_GetServerPort_Call) RunAndReturn(run func() int) *Mo
903 return _c1039 return _c
904 }1040 }
905 1041
1042+// IsAutoEnabled provides a mock function for the type MockConfigService
1043+func (_mock *MockConfigService) IsAutoEnabled() bool {
1044+ ret := _mock.Called()
1045+
1046+ if len(ret) == 0 {
1047+ panic("no return value specified for IsAutoEnabled")
1048+ }
1049+
1050+ var r0 bool
1051+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1052+ r0 = returnFunc()
1053+ } else {
1054+ r0 = ret.Get(0).(bool)
1055+ }
1056+ return r0
1057+}
1058+
1059+// MockConfigService_IsAutoEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoEnabled'
1060+type MockConfigService_IsAutoEnabled_Call struct {
1061+ *mock.Call
1062+}
1063+
1064+// IsAutoEnabled is a helper method to define mock.On call
1065+func (_e *MockConfigService_Expecter) IsAutoEnabled() *MockConfigService_IsAutoEnabled_Call {
1066+ return &MockConfigService_IsAutoEnabled_Call{Call: _e.mock.On("IsAutoEnabled")}
1067+}
1068+
1069+func (_c *MockConfigService_IsAutoEnabled_Call) Run(run func()) *MockConfigService_IsAutoEnabled_Call {
1070+ _c.Call.Run(func(args mock.Arguments) {
1071+ run()
1072+ })
1073+ return _c
1074+}
1075+
1076+func (_c *MockConfigService_IsAutoEnabled_Call) Return(b bool) *MockConfigService_IsAutoEnabled_Call {
1077+ _c.Call.Return(b)
1078+ return _c
1079+}
1080+
1081+func (_c *MockConfigService_IsAutoEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsAutoEnabled_Call {
1082+ _c.Call.Return(run)
1083+ return _c
1084+}
1085+
906 // IsAutoRouteEnabled provides a mock function for the type MockConfigService1086 // IsAutoRouteEnabled provides a mock function for the type MockConfigService
907 func (_mock *MockConfigService) IsAutoRouteEnabled() bool {1087 func (_mock *MockConfigService) IsAutoRouteEnabled() bool {
908 ret := _mock.Called()1088 ret := _mock.Called()
@@ -991,6 +1171,50 @@ func (_c *MockConfigService_IsNetworkIsolationEnabled_Call) RunAndReturn(run fun
991 return _c1171 return _c
992 }1172 }
993 1173
1174+// IsPreviewEnabled provides a mock function for the type MockConfigService
1175+func (_mock *MockConfigService) IsPreviewEnabled() bool {
1176+ ret := _mock.Called()
1177+
1178+ if len(ret) == 0 {
1179+ panic("no return value specified for IsPreviewEnabled")
1180+ }
1181+
1182+ var r0 bool
1183+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1184+ r0 = returnFunc()
1185+ } else {
1186+ r0 = ret.Get(0).(bool)
1187+ }
1188+ return r0
1189+}
1190+
1191+// MockConfigService_IsPreviewEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPreviewEnabled'
1192+type MockConfigService_IsPreviewEnabled_Call struct {
1193+ *mock.Call
1194+}
1195+
1196+// IsPreviewEnabled is a helper method to define mock.On call
1197+func (_e *MockConfigService_Expecter) IsPreviewEnabled() *MockConfigService_IsPreviewEnabled_Call {
1198+ return &MockConfigService_IsPreviewEnabled_Call{Call: _e.mock.On("IsPreviewEnabled")}
1199+}
1200+
1201+func (_c *MockConfigService_IsPreviewEnabled_Call) Run(run func()) *MockConfigService_IsPreviewEnabled_Call {
1202+ _c.Call.Run(func(args mock.Arguments) {
1203+ run()
1204+ })
1205+ return _c
1206+}
1207+
1208+func (_c *MockConfigService_IsPreviewEnabled_Call) Return(b bool) *MockConfigService_IsPreviewEnabled_Call {
1209+ _c.Call.Return(b)
1210+ return _c
1211+}
1212+
1213+func (_c *MockConfigService_IsPreviewEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsPreviewEnabled_Call {
1214+ _c.Call.Return(run)
1215+ return _c
1216+}
1217+
994 // Load provides a mock function for the type MockConfigService1218 // Load provides a mock function for the type MockConfigService
995 func (_mock *MockConfigService) Load(ctx context.Context) error {1219 func (_mock *MockConfigService) Load(ctx context.Context) error {
996 ret := _mock.Called(ctx)1220 ret := _mock.Called(ctx)
@@ -1378,230 +1602,6 @@ func (_c *MockConfigService_UpdateRoute_Call) RunAndReturn(run func(ctx context.
1378 return _c1602 return _c
1379 }1603 }
1380 1604
1381-// GetPreviewConfig provides a mock function for the type MockConfigService
1382-func (_mock *MockConfigService) GetPreviewConfig() domain.PreviewConfig {
1383- ret := _mock.Called()
1384-
1385- if len(ret) == 0 {
1386- panic("no return value specified for GetPreviewConfig")
1387- }
1388-
1389- var r0 domain.PreviewConfig
1390- if returnFunc, ok := ret.Get(0).(func() domain.PreviewConfig); ok {
1391- r0 = returnFunc()
1392- } else {
1393- r0 = ret.Get(0).(domain.PreviewConfig)
1394- }
1395- return r0
1396-}
1397-
1398-// MockConfigService_GetPreviewConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewConfig'
1399-type MockConfigService_GetPreviewConfig_Call struct {
1400- *mock.Call
1401-}
1402-
1403-// GetPreviewConfig is a helper method to define mock.On call
1404-func (_e *MockConfigService_Expecter) GetPreviewConfig() *MockConfigService_GetPreviewConfig_Call {
1405- return &MockConfigService_GetPreviewConfig_Call{Call: _e.mock.On("GetPreviewConfig")}
1406-}
1407-
1408-func (_c *MockConfigService_GetPreviewConfig_Call) Run(run func()) *MockConfigService_GetPreviewConfig_Call {
1409- _c.Call.Run(func(args mock.Arguments) {
1410- run()
1411- })
1412- return _c
1413-}
1414-
1415-func (_c *MockConfigService_GetPreviewConfig_Call) Return(cfg domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
1416- _c.Call.Return(cfg)
1417- return _c
1418-}
1419-
1420-func (_c *MockConfigService_GetPreviewConfig_Call) RunAndReturn(run func() domain.PreviewConfig) *MockConfigService_GetPreviewConfig_Call {
1421- _c.Call.Return(run)
1422- return _c
1423-}
1424-
1425-// IsPreviewEnabled provides a mock function for the type MockConfigService
1426-func (_mock *MockConfigService) IsPreviewEnabled() bool {
1427- ret := _mock.Called()
1428-
1429- if len(ret) == 0 {
1430- panic("no return value specified for IsPreviewEnabled")
1431- }
1432-
1433- var r0 bool
1434- if returnFunc, ok := ret.Get(0).(func() bool); ok {
1435- r0 = returnFunc()
1436- } else {
1437- r0 = ret.Get(0).(bool)
1438- }
1439- return r0
1440-}
1441-
1442-// MockConfigService_IsPreviewEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPreviewEnabled'
1443-type MockConfigService_IsPreviewEnabled_Call struct {
1444- *mock.Call
1445-}
1446-
1447-// IsPreviewEnabled is a helper method to define mock.On call
1448-func (_e *MockConfigService_Expecter) IsPreviewEnabled() *MockConfigService_IsPreviewEnabled_Call {
1449- return &MockConfigService_IsPreviewEnabled_Call{Call: _e.mock.On("IsPreviewEnabled")}
1450-}
1451-
1452-func (_c *MockConfigService_IsPreviewEnabled_Call) Run(run func()) *MockConfigService_IsPreviewEnabled_Call {
1453- _c.Call.Run(func(args mock.Arguments) {
1454- run()
1455- })
1456- return _c
1457-}
1458-
1459-func (_c *MockConfigService_IsPreviewEnabled_Call) Return(b bool) *MockConfigService_IsPreviewEnabled_Call {
1460- _c.Call.Return(b)
1461- return _c
1462-}
1463-
1464-func (_c *MockConfigService_IsPreviewEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsPreviewEnabled_Call {
1465- _c.Call.Return(run)
1466- return _c
1467-}
1468-
1469-// IsAutoEnabled provides a mock function for the type MockConfigService
1470-func (_mock *MockConfigService) IsAutoEnabled() bool {
1471- ret := _mock.Called()
1472-
1473- if len(ret) == 0 {
1474- panic("no return value specified for IsAutoEnabled")
1475- }
1476-
1477- var r0 bool
1478- if returnFunc, ok := ret.Get(0).(func() bool); ok {
1479- r0 = returnFunc()
1480- } else {
1481- r0 = ret.Get(0).(bool)
1482- }
1483- return r0
1484-}
1485-
1486-// MockConfigService_IsAutoEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoEnabled'
1487-type MockConfigService_IsAutoEnabled_Call struct {
1488- *mock.Call
1489-}
1490-
1491-// IsAutoEnabled is a helper method to define mock.On call
1492-func (_e *MockConfigService_Expecter) IsAutoEnabled() *MockConfigService_IsAutoEnabled_Call {
1493- return &MockConfigService_IsAutoEnabled_Call{Call: _e.mock.On("IsAutoEnabled")}
1494-}
1495-
1496-func (_c *MockConfigService_IsAutoEnabled_Call) Run(run func()) *MockConfigService_IsAutoEnabled_Call {
1497- _c.Call.Run(func(args mock.Arguments) {
1498- run()
1499- })
1500- return _c
1501-}
1502-
1503-func (_c *MockConfigService_IsAutoEnabled_Call) Return(b bool) *MockConfigService_IsAutoEnabled_Call {
1504- _c.Call.Return(b)
1505- return _c
1506-}
1507-
1508-func (_c *MockConfigService_IsAutoEnabled_Call) RunAndReturn(run func() bool) *MockConfigService_IsAutoEnabled_Call {
1509- _c.Call.Return(run)
1510- return _c
1511-}
1512-
1513-// GetPreviewTagPatterns provides a mock function for the type MockConfigService
1514-func (_mock *MockConfigService) GetPreviewTagPatterns() []string {
1515- ret := _mock.Called()
1516-
1517- if len(ret) == 0 {
1518- panic("no return value specified for GetPreviewTagPatterns")
1519- }
1520-
1521- var r0 []string
1522- if returnFunc, ok := ret.Get(0).(func() []string); ok {
1523- r0 = returnFunc()
1524- } else {
1525- if ret.Get(0) != nil {
1526- r0 = ret.Get(0).([]string)
1527- }
1528- }
1529- return r0
1530-}
1531-
1532-// MockConfigService_GetPreviewTagPatterns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewTagPatterns'
1533-type MockConfigService_GetPreviewTagPatterns_Call struct {
1534- *mock.Call
1535-}
1536-
1537-// GetPreviewTagPatterns is a helper method to define mock.On call
1538-func (_e *MockConfigService_Expecter) GetPreviewTagPatterns() *MockConfigService_GetPreviewTagPatterns_Call {
1539- return &MockConfigService_GetPreviewTagPatterns_Call{Call: _e.mock.On("GetPreviewTagPatterns")}
1540-}
1541-
1542-func (_c *MockConfigService_GetPreviewTagPatterns_Call) Run(run func()) *MockConfigService_GetPreviewTagPatterns_Call {
1543- _c.Call.Run(func(args mock.Arguments) {
1544- run()
1545- })
1546- return _c
1547-}
1548-
1549-func (_c *MockConfigService_GetPreviewTagPatterns_Call) Return(patterns []string) *MockConfigService_GetPreviewTagPatterns_Call {
1550- _c.Call.Return(patterns)
1551- return _c
1552-}
1553-
1554-func (_c *MockConfigService_GetPreviewTagPatterns_Call) RunAndReturn(run func() []string) *MockConfigService_GetPreviewTagPatterns_Call {
1555- _c.Call.Return(run)
1556- return _c
1557-}
1558-
1559-// GetAllowedDomains provides a mock function for the type MockConfigService
1560-func (_mock *MockConfigService) GetAllowedDomains() []string {
1561- ret := _mock.Called()
1562-
1563- if len(ret) == 0 {
1564- panic("no return value specified for GetAllowedDomains")
1565- }
1566-
1567- var r0 []string
1568- if returnFunc, ok := ret.Get(0).(func() []string); ok {
1569- r0 = returnFunc()
1570- } else {
1571- if ret.Get(0) != nil {
1572- r0 = ret.Get(0).([]string)
1573- }
1574- }
1575- return r0
1576-}
1577-
1578-// MockConfigService_GetAllowedDomains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllowedDomains'
1579-type MockConfigService_GetAllowedDomains_Call struct {
1580- *mock.Call
1581-}
1582-
1583-// GetAllowedDomains is a helper method to define mock.On call
1584-func (_e *MockConfigService_Expecter) GetAllowedDomains() *MockConfigService_GetAllowedDomains_Call {
1585- return &MockConfigService_GetAllowedDomains_Call{Call: _e.mock.On("GetAllowedDomains")}
1586-}
1587-
1588-func (_c *MockConfigService_GetAllowedDomains_Call) Run(run func()) *MockConfigService_GetAllowedDomains_Call {
1589- _c.Call.Run(func(args mock.Arguments) {
1590- run()
1591- })
1592- return _c
1593-}
1594-
1595-func (_c *MockConfigService_GetAllowedDomains_Call) Return(domains []string) *MockConfigService_GetAllowedDomains_Call {
1596- _c.Call.Return(domains)
1597- return _c
1598-}
1599-
1600-func (_c *MockConfigService_GetAllowedDomains_Call) RunAndReturn(run func() []string) *MockConfigService_GetAllowedDomains_Call {
1601- _c.Call.Return(run)
1602- return _c
1603-}
1604-
1605 // Watch provides a mock function for the type MockConfigService1605 // Watch provides a mock function for the type MockConfigService
1606 func (_mock *MockConfigService) Watch(ctx context.Context, onChange func()) error {1606 func (_mock *MockConfigService) Watch(ctx context.Context, onChange func()) error {
1607 ret := _mock.Called(ctx, onChange)1607 ret := _mock.Called(ctx, onChange)

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