diff --git a/.bingo/go-xgettext.mod b/.bingo/go-xgettext.mod index b14946a0b8..8e3c6210b5 100644 --- a/.bingo/go-xgettext.mod +++ b/.bingo/go-xgettext.mod @@ -3,5 +3,3 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT go 1.23.4 require github.com/gosexy/gettext v0.0.0-20160830220431-74466a0a0c4a // go-xgettext - -require github.com/jessevdk/go-flags v1.6.1 // indirect diff --git a/protogen/gen/opencloud/services/eventhistory/v0/mocks/event_history_service.go b/protogen/gen/opencloud/services/eventhistory/v0/mocks/event_history_service.go index 0aded2cded..2f8ccd399a 100644 --- a/protogen/gen/opencloud/services/eventhistory/v0/mocks/event_history_service.go +++ b/protogen/gen/opencloud/services/eventhistory/v0/mocks/event_history_service.go @@ -79,9 +79,9 @@ type EventHistoryService_GetEvents_Call struct { } // GetEvents is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.GetEventsRequest +// - opts ...client.CallOption func (_e *EventHistoryService_Expecter) GetEvents(ctx interface{}, in interface{}, opts ...interface{}) *EventHistoryService_GetEvents_Call { return &EventHistoryService_GetEvents_Call{Call: _e.mock.On("GetEvents", append([]interface{}{ctx, in}, opts...)...)} @@ -89,8 +89,25 @@ func (_e *EventHistoryService_Expecter) GetEvents(ctx interface{}, in interface{ func (_c *EventHistoryService_GetEvents_Call) Run(run func(ctx context.Context, in *v0.GetEventsRequest, opts ...client.CallOption)) *EventHistoryService_GetEvents_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.GetEventsRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.GetEventsRequest + if args[1] != nil { + arg1 = args[1].(*v0.GetEventsRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } @@ -145,9 +162,9 @@ type EventHistoryService_GetEventsForUser_Call struct { } // GetEventsForUser is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.GetEventsForUserRequest +// - opts ...client.CallOption func (_e *EventHistoryService_Expecter) GetEventsForUser(ctx interface{}, in interface{}, opts ...interface{}) *EventHistoryService_GetEventsForUser_Call { return &EventHistoryService_GetEventsForUser_Call{Call: _e.mock.On("GetEventsForUser", append([]interface{}{ctx, in}, opts...)...)} @@ -155,8 +172,25 @@ func (_e *EventHistoryService_Expecter) GetEventsForUser(ctx interface{}, in int func (_c *EventHistoryService_GetEventsForUser_Call) Run(run func(ctx context.Context, in *v0.GetEventsForUserRequest, opts ...client.CallOption)) *EventHistoryService_GetEventsForUser_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.GetEventsForUserRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.GetEventsForUserRequest + if args[1] != nil { + arg1 = args[1].(*v0.GetEventsForUserRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } diff --git a/protogen/gen/opencloud/services/policies/v0/mocks/policies_provider_service.go b/protogen/gen/opencloud/services/policies/v0/mocks/policies_provider_service.go index fc3ffb34ff..de09cc237b 100644 --- a/protogen/gen/opencloud/services/policies/v0/mocks/policies_provider_service.go +++ b/protogen/gen/opencloud/services/policies/v0/mocks/policies_provider_service.go @@ -79,9 +79,9 @@ type PoliciesProviderService_Evaluate_Call struct { } // Evaluate is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.EvaluateRequest +// - opts ...client.CallOption func (_e *PoliciesProviderService_Expecter) Evaluate(ctx interface{}, in interface{}, opts ...interface{}) *PoliciesProviderService_Evaluate_Call { return &PoliciesProviderService_Evaluate_Call{Call: _e.mock.On("Evaluate", append([]interface{}{ctx, in}, opts...)...)} @@ -89,8 +89,25 @@ func (_e *PoliciesProviderService_Expecter) Evaluate(ctx interface{}, in interfa func (_c *PoliciesProviderService_Evaluate_Call) Run(run func(ctx context.Context, in *v0.EvaluateRequest, opts ...client.CallOption)) *PoliciesProviderService_Evaluate_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.EvaluateRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.EvaluateRequest + if args[1] != nil { + arg1 = args[1].(*v0.EvaluateRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } diff --git a/protogen/gen/opencloud/services/search/v0/mocks/search_provider_service.go b/protogen/gen/opencloud/services/search/v0/mocks/search_provider_service.go index d2c6ec1124..0ac66733dc 100644 --- a/protogen/gen/opencloud/services/search/v0/mocks/search_provider_service.go +++ b/protogen/gen/opencloud/services/search/v0/mocks/search_provider_service.go @@ -79,9 +79,9 @@ type SearchProviderService_IndexSpace_Call struct { } // IndexSpace is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.IndexSpaceRequest +// - opts ...client.CallOption func (_e *SearchProviderService_Expecter) IndexSpace(ctx interface{}, in interface{}, opts ...interface{}) *SearchProviderService_IndexSpace_Call { return &SearchProviderService_IndexSpace_Call{Call: _e.mock.On("IndexSpace", append([]interface{}{ctx, in}, opts...)...)} @@ -89,8 +89,25 @@ func (_e *SearchProviderService_Expecter) IndexSpace(ctx interface{}, in interfa func (_c *SearchProviderService_IndexSpace_Call) Run(run func(ctx context.Context, in *v0.IndexSpaceRequest, opts ...client.CallOption)) *SearchProviderService_IndexSpace_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.IndexSpaceRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.IndexSpaceRequest + if args[1] != nil { + arg1 = args[1].(*v0.IndexSpaceRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } @@ -145,9 +162,9 @@ type SearchProviderService_Search_Call struct { } // Search is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.SearchRequest +// - opts ...client.CallOption func (_e *SearchProviderService_Expecter) Search(ctx interface{}, in interface{}, opts ...interface{}) *SearchProviderService_Search_Call { return &SearchProviderService_Search_Call{Call: _e.mock.On("Search", append([]interface{}{ctx, in}, opts...)...)} @@ -155,8 +172,25 @@ func (_e *SearchProviderService_Expecter) Search(ctx interface{}, in interface{} func (_c *SearchProviderService_Search_Call) Run(run func(ctx context.Context, in *v0.SearchRequest, opts ...client.CallOption)) *SearchProviderService_Search_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.SearchRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.SearchRequest + if args[1] != nil { + arg1 = args[1].(*v0.SearchRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } diff --git a/protogen/gen/opencloud/services/settings/v0/mocks/value_service.go b/protogen/gen/opencloud/services/settings/v0/mocks/value_service.go index e4c4852de9..5972896cf8 100644 --- a/protogen/gen/opencloud/services/settings/v0/mocks/value_service.go +++ b/protogen/gen/opencloud/services/settings/v0/mocks/value_service.go @@ -79,9 +79,9 @@ type ValueService_GetValue_Call struct { } // GetValue is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.GetValueRequest +// - opts ...client.CallOption func (_e *ValueService_Expecter) GetValue(ctx interface{}, in interface{}, opts ...interface{}) *ValueService_GetValue_Call { return &ValueService_GetValue_Call{Call: _e.mock.On("GetValue", append([]interface{}{ctx, in}, opts...)...)} @@ -89,8 +89,25 @@ func (_e *ValueService_Expecter) GetValue(ctx interface{}, in interface{}, opts func (_c *ValueService_GetValue_Call) Run(run func(ctx context.Context, in *v0.GetValueRequest, opts ...client.CallOption)) *ValueService_GetValue_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.GetValueRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.GetValueRequest + if args[1] != nil { + arg1 = args[1].(*v0.GetValueRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } @@ -145,9 +162,9 @@ type ValueService_GetValueByUniqueIdentifiers_Call struct { } // GetValueByUniqueIdentifiers is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.GetValueByUniqueIdentifiersRequest +// - opts ...client.CallOption func (_e *ValueService_Expecter) GetValueByUniqueIdentifiers(ctx interface{}, in interface{}, opts ...interface{}) *ValueService_GetValueByUniqueIdentifiers_Call { return &ValueService_GetValueByUniqueIdentifiers_Call{Call: _e.mock.On("GetValueByUniqueIdentifiers", append([]interface{}{ctx, in}, opts...)...)} @@ -155,8 +172,25 @@ func (_e *ValueService_Expecter) GetValueByUniqueIdentifiers(ctx interface{}, in func (_c *ValueService_GetValueByUniqueIdentifiers_Call) Run(run func(ctx context.Context, in *v0.GetValueByUniqueIdentifiersRequest, opts ...client.CallOption)) *ValueService_GetValueByUniqueIdentifiers_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.GetValueByUniqueIdentifiersRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.GetValueByUniqueIdentifiersRequest + if args[1] != nil { + arg1 = args[1].(*v0.GetValueByUniqueIdentifiersRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } @@ -211,9 +245,9 @@ type ValueService_ListValues_Call struct { } // ListValues is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.ListValuesRequest +// - opts ...client.CallOption func (_e *ValueService_Expecter) ListValues(ctx interface{}, in interface{}, opts ...interface{}) *ValueService_ListValues_Call { return &ValueService_ListValues_Call{Call: _e.mock.On("ListValues", append([]interface{}{ctx, in}, opts...)...)} @@ -221,8 +255,25 @@ func (_e *ValueService_Expecter) ListValues(ctx interface{}, in interface{}, opt func (_c *ValueService_ListValues_Call) Run(run func(ctx context.Context, in *v0.ListValuesRequest, opts ...client.CallOption)) *ValueService_ListValues_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.ListValuesRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.ListValuesRequest + if args[1] != nil { + arg1 = args[1].(*v0.ListValuesRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } @@ -277,9 +328,9 @@ type ValueService_SaveValue_Call struct { } // SaveValue is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.SaveValueRequest +// - opts ...client.CallOption func (_e *ValueService_Expecter) SaveValue(ctx interface{}, in interface{}, opts ...interface{}) *ValueService_SaveValue_Call { return &ValueService_SaveValue_Call{Call: _e.mock.On("SaveValue", append([]interface{}{ctx, in}, opts...)...)} @@ -287,8 +338,25 @@ func (_e *ValueService_Expecter) SaveValue(ctx interface{}, in interface{}, opts func (_c *ValueService_SaveValue_Call) Run(run func(ctx context.Context, in *v0.SaveValueRequest, opts ...client.CallOption)) *ValueService_SaveValue_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.SaveValueRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.SaveValueRequest + if args[1] != nil { + arg1 = args[1].(*v0.SaveValueRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c } diff --git a/protogen/gen/opencloud/services/thumbnails/v0/mocks/thumbnail_service.go b/protogen/gen/opencloud/services/thumbnails/v0/mocks/thumbnail_service.go index 4618562017..b9672a2c7f 100644 --- a/protogen/gen/opencloud/services/thumbnails/v0/mocks/thumbnail_service.go +++ b/protogen/gen/opencloud/services/thumbnails/v0/mocks/thumbnail_service.go @@ -79,9 +79,9 @@ type ThumbnailService_GetThumbnail_Call struct { } // GetThumbnail is a helper method to define mock.On call -// - ctx -// - in -// - opts +// - ctx context.Context +// - in *v0.GetThumbnailRequest +// - opts ...client.CallOption func (_e *ThumbnailService_Expecter) GetThumbnail(ctx interface{}, in interface{}, opts ...interface{}) *ThumbnailService_GetThumbnail_Call { return &ThumbnailService_GetThumbnail_Call{Call: _e.mock.On("GetThumbnail", append([]interface{}{ctx, in}, opts...)...)} @@ -89,8 +89,25 @@ func (_e *ThumbnailService_Expecter) GetThumbnail(ctx interface{}, in interface{ func (_c *ThumbnailService_GetThumbnail_Call) Run(run func(ctx context.Context, in *v0.GetThumbnailRequest, opts ...client.CallOption)) *ThumbnailService_GetThumbnail_Call { _c.Call.Run(func(args mock.Arguments) { - variadicArgs := args[2].([]client.CallOption) - run(args[0].(context.Context), args[1].(*v0.GetThumbnailRequest), variadicArgs...) + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v0.GetThumbnailRequest + if args[1] != nil { + arg1 = args[1].(*v0.GetThumbnailRequest) + } + var arg2 []client.CallOption + var variadicArgs []client.CallOption + if len(args) > 2 { + variadicArgs = args[2].([]client.CallOption) + } + arg2 = variadicArgs + run( + arg0, + arg1, + arg2..., + ) }) return _c }