Documentation ¶
Index ¶
- type ModuleService
- func (_m *ModuleService) CreateModule(ctx context.Context, mod module.Module) (*module.Module, error)
- func (_m *ModuleService) DeleteModule(ctx context.Context, urn string) error
- func (_m *ModuleService) EXPECT() *ModuleService_Expecter
- func (_m *ModuleService) GetModule(ctx context.Context, urn string) (*module.Module, error)
- func (_m *ModuleService) ListModules(ctx context.Context, project string) ([]module.Module, error)
- func (_m *ModuleService) UpdateModule(ctx context.Context, urn string, newConfigs json.RawMessage) (*module.Module, error)
- type ModuleService_CreateModule_Call
- func (_c *ModuleService_CreateModule_Call) Return(_a0 *module.Module, _a1 error) *ModuleService_CreateModule_Call
- func (_c *ModuleService_CreateModule_Call) Run(run func(ctx context.Context, mod module.Module)) *ModuleService_CreateModule_Call
- func (_c *ModuleService_CreateModule_Call) RunAndReturn(run func(context.Context, module.Module) (*module.Module, error)) *ModuleService_CreateModule_Call
- type ModuleService_DeleteModule_Call
- func (_c *ModuleService_DeleteModule_Call) Return(_a0 error) *ModuleService_DeleteModule_Call
- func (_c *ModuleService_DeleteModule_Call) Run(run func(ctx context.Context, urn string)) *ModuleService_DeleteModule_Call
- func (_c *ModuleService_DeleteModule_Call) RunAndReturn(run func(context.Context, string) error) *ModuleService_DeleteModule_Call
- type ModuleService_Expecter
- func (_e *ModuleService_Expecter) CreateModule(ctx interface{}, mod interface{}) *ModuleService_CreateModule_Call
- func (_e *ModuleService_Expecter) DeleteModule(ctx interface{}, urn interface{}) *ModuleService_DeleteModule_Call
- func (_e *ModuleService_Expecter) GetModule(ctx interface{}, urn interface{}) *ModuleService_GetModule_Call
- func (_e *ModuleService_Expecter) ListModules(ctx interface{}, project interface{}) *ModuleService_ListModules_Call
- func (_e *ModuleService_Expecter) UpdateModule(ctx interface{}, urn interface{}, newConfigs interface{}) *ModuleService_UpdateModule_Call
- type ModuleService_GetModule_Call
- func (_c *ModuleService_GetModule_Call) Return(_a0 *module.Module, _a1 error) *ModuleService_GetModule_Call
- func (_c *ModuleService_GetModule_Call) Run(run func(ctx context.Context, urn string)) *ModuleService_GetModule_Call
- func (_c *ModuleService_GetModule_Call) RunAndReturn(run func(context.Context, string) (*module.Module, error)) *ModuleService_GetModule_Call
- type ModuleService_ListModules_Call
- func (_c *ModuleService_ListModules_Call) Return(_a0 []module.Module, _a1 error) *ModuleService_ListModules_Call
- func (_c *ModuleService_ListModules_Call) Run(run func(ctx context.Context, project string)) *ModuleService_ListModules_Call
- func (_c *ModuleService_ListModules_Call) RunAndReturn(run func(context.Context, string) ([]module.Module, error)) *ModuleService_ListModules_Call
- type ModuleService_UpdateModule_Call
- func (_c *ModuleService_UpdateModule_Call) Return(_a0 *module.Module, _a1 error) *ModuleService_UpdateModule_Call
- func (_c *ModuleService_UpdateModule_Call) Run(run func(ctx context.Context, urn string, newConfigs json.RawMessage)) *ModuleService_UpdateModule_Call
- func (_c *ModuleService_UpdateModule_Call) RunAndReturn(run func(context.Context, string, json.RawMessage) (*module.Module, error)) *ModuleService_UpdateModule_Call
- type ResourceService
- func (_m *ResourceService) ApplyAction(ctx context.Context, urn string, action module.ActionRequest) (*resource.Resource, error)
- func (_m *ResourceService) CreateResource(ctx context.Context, res resource.Resource) (*resource.Resource, error)
- func (_m *ResourceService) DeleteResource(ctx context.Context, urn string) error
- func (_m *ResourceService) EXPECT() *ResourceService_Expecter
- func (_m *ResourceService) GetLog(ctx context.Context, urn string, filter map[string]string) (<-chan module.LogChunk, error)
- func (_m *ResourceService) GetResource(ctx context.Context, urn string) (*resource.Resource, error)
- func (_m *ResourceService) GetRevisions(ctx context.Context, selector resource.RevisionsSelector) ([]resource.Revision, error)
- func (_m *ResourceService) ListResources(ctx context.Context, filter resource.Filter, withSpecConfigs bool) ([]resource.Resource, error)
- func (_m *ResourceService) UpdateResource(ctx context.Context, urn string, req resource.UpdateRequest) (*resource.Resource, error)
- type ResourceService_ApplyAction_Call
- func (_c *ResourceService_ApplyAction_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_ApplyAction_Call
- func (_c *ResourceService_ApplyAction_Call) Run(run func(ctx context.Context, urn string, action module.ActionRequest)) *ResourceService_ApplyAction_Call
- func (_c *ResourceService_ApplyAction_Call) RunAndReturn(...) *ResourceService_ApplyAction_Call
- type ResourceService_CreateResource_Call
- func (_c *ResourceService_CreateResource_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_CreateResource_Call
- func (_c *ResourceService_CreateResource_Call) Run(run func(ctx context.Context, res resource.Resource)) *ResourceService_CreateResource_Call
- func (_c *ResourceService_CreateResource_Call) RunAndReturn(run func(context.Context, resource.Resource) (*resource.Resource, error)) *ResourceService_CreateResource_Call
- type ResourceService_DeleteResource_Call
- func (_c *ResourceService_DeleteResource_Call) Return(_a0 error) *ResourceService_DeleteResource_Call
- func (_c *ResourceService_DeleteResource_Call) Run(run func(ctx context.Context, urn string)) *ResourceService_DeleteResource_Call
- func (_c *ResourceService_DeleteResource_Call) RunAndReturn(run func(context.Context, string) error) *ResourceService_DeleteResource_Call
- type ResourceService_Expecter
- func (_e *ResourceService_Expecter) ApplyAction(ctx interface{}, urn interface{}, action interface{}) *ResourceService_ApplyAction_Call
- func (_e *ResourceService_Expecter) CreateResource(ctx interface{}, res interface{}) *ResourceService_CreateResource_Call
- func (_e *ResourceService_Expecter) DeleteResource(ctx interface{}, urn interface{}) *ResourceService_DeleteResource_Call
- func (_e *ResourceService_Expecter) GetLog(ctx interface{}, urn interface{}, filter interface{}) *ResourceService_GetLog_Call
- func (_e *ResourceService_Expecter) GetResource(ctx interface{}, urn interface{}) *ResourceService_GetResource_Call
- func (_e *ResourceService_Expecter) GetRevisions(ctx interface{}, selector interface{}) *ResourceService_GetRevisions_Call
- func (_e *ResourceService_Expecter) ListResources(ctx interface{}, filter interface{}, withSpecConfigs interface{}) *ResourceService_ListResources_Call
- func (_e *ResourceService_Expecter) UpdateResource(ctx interface{}, urn interface{}, req interface{}) *ResourceService_UpdateResource_Call
- type ResourceService_GetLog_Call
- func (_c *ResourceService_GetLog_Call) Return(_a0 <-chan module.LogChunk, _a1 error) *ResourceService_GetLog_Call
- func (_c *ResourceService_GetLog_Call) Run(run func(ctx context.Context, urn string, filter map[string]string)) *ResourceService_GetLog_Call
- func (_c *ResourceService_GetLog_Call) RunAndReturn(...) *ResourceService_GetLog_Call
- type ResourceService_GetResource_Call
- func (_c *ResourceService_GetResource_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_GetResource_Call
- func (_c *ResourceService_GetResource_Call) Run(run func(ctx context.Context, urn string)) *ResourceService_GetResource_Call
- func (_c *ResourceService_GetResource_Call) RunAndReturn(run func(context.Context, string) (*resource.Resource, error)) *ResourceService_GetResource_Call
- type ResourceService_GetRevisions_Call
- func (_c *ResourceService_GetRevisions_Call) Return(_a0 []resource.Revision, _a1 error) *ResourceService_GetRevisions_Call
- func (_c *ResourceService_GetRevisions_Call) Run(run func(ctx context.Context, selector resource.RevisionsSelector)) *ResourceService_GetRevisions_Call
- func (_c *ResourceService_GetRevisions_Call) RunAndReturn(...) *ResourceService_GetRevisions_Call
- type ResourceService_ListResources_Call
- func (_c *ResourceService_ListResources_Call) Return(_a0 []resource.Resource, _a1 error) *ResourceService_ListResources_Call
- func (_c *ResourceService_ListResources_Call) Run(run func(ctx context.Context, filter resource.Filter, withSpecConfigs bool)) *ResourceService_ListResources_Call
- func (_c *ResourceService_ListResources_Call) RunAndReturn(run func(context.Context, resource.Filter, bool) ([]resource.Resource, error)) *ResourceService_ListResources_Call
- type ResourceService_UpdateResource_Call
- func (_c *ResourceService_UpdateResource_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_UpdateResource_Call
- func (_c *ResourceService_UpdateResource_Call) Run(run func(ctx context.Context, urn string, req resource.UpdateRequest)) *ResourceService_UpdateResource_Call
- func (_c *ResourceService_UpdateResource_Call) RunAndReturn(...) *ResourceService_UpdateResource_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleService ¶
ModuleService is an autogenerated mock type for the ModuleService type
func NewModuleService ¶
func NewModuleService(t mockConstructorTestingTNewModuleService) *ModuleService
NewModuleService creates a new instance of ModuleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ModuleService) CreateModule ¶
func (_m *ModuleService) CreateModule(ctx context.Context, mod module.Module) (*module.Module, error)
CreateModule provides a mock function with given fields: ctx, mod
func (*ModuleService) DeleteModule ¶
func (_m *ModuleService) DeleteModule(ctx context.Context, urn string) error
DeleteModule provides a mock function with given fields: ctx, urn
func (*ModuleService) EXPECT ¶
func (_m *ModuleService) EXPECT() *ModuleService_Expecter
func (*ModuleService) ListModules ¶
ListModules provides a mock function with given fields: ctx, project
func (*ModuleService) UpdateModule ¶
func (_m *ModuleService) UpdateModule(ctx context.Context, urn string, newConfigs json.RawMessage) (*module.Module, error)
UpdateModule provides a mock function with given fields: ctx, urn, newConfigs
type ModuleService_CreateModule_Call ¶
ModuleService_CreateModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateModule'
func (*ModuleService_CreateModule_Call) Return ¶
func (_c *ModuleService_CreateModule_Call) Return(_a0 *module.Module, _a1 error) *ModuleService_CreateModule_Call
func (*ModuleService_CreateModule_Call) Run ¶
func (_c *ModuleService_CreateModule_Call) Run(run func(ctx context.Context, mod module.Module)) *ModuleService_CreateModule_Call
func (*ModuleService_CreateModule_Call) RunAndReturn ¶
func (_c *ModuleService_CreateModule_Call) RunAndReturn(run func(context.Context, module.Module) (*module.Module, error)) *ModuleService_CreateModule_Call
type ModuleService_DeleteModule_Call ¶
ModuleService_DeleteModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteModule'
func (*ModuleService_DeleteModule_Call) Return ¶
func (_c *ModuleService_DeleteModule_Call) Return(_a0 error) *ModuleService_DeleteModule_Call
func (*ModuleService_DeleteModule_Call) Run ¶
func (_c *ModuleService_DeleteModule_Call) Run(run func(ctx context.Context, urn string)) *ModuleService_DeleteModule_Call
func (*ModuleService_DeleteModule_Call) RunAndReturn ¶
func (_c *ModuleService_DeleteModule_Call) RunAndReturn(run func(context.Context, string) error) *ModuleService_DeleteModule_Call
type ModuleService_Expecter ¶
type ModuleService_Expecter struct {
// contains filtered or unexported fields
}
func (*ModuleService_Expecter) CreateModule ¶
func (_e *ModuleService_Expecter) CreateModule(ctx interface{}, mod interface{}) *ModuleService_CreateModule_Call
CreateModule is a helper method to define mock.On call
- ctx context.Context
- mod module.Module
func (*ModuleService_Expecter) DeleteModule ¶
func (_e *ModuleService_Expecter) DeleteModule(ctx interface{}, urn interface{}) *ModuleService_DeleteModule_Call
DeleteModule is a helper method to define mock.On call
- ctx context.Context
- urn string
func (*ModuleService_Expecter) GetModule ¶
func (_e *ModuleService_Expecter) GetModule(ctx interface{}, urn interface{}) *ModuleService_GetModule_Call
GetModule is a helper method to define mock.On call
- ctx context.Context
- urn string
func (*ModuleService_Expecter) ListModules ¶
func (_e *ModuleService_Expecter) ListModules(ctx interface{}, project interface{}) *ModuleService_ListModules_Call
ListModules is a helper method to define mock.On call
- ctx context.Context
- project string
func (*ModuleService_Expecter) UpdateModule ¶
func (_e *ModuleService_Expecter) UpdateModule(ctx interface{}, urn interface{}, newConfigs interface{}) *ModuleService_UpdateModule_Call
UpdateModule is a helper method to define mock.On call
- ctx context.Context
- urn string
- newConfigs json.RawMessage
type ModuleService_GetModule_Call ¶
ModuleService_GetModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModule'
func (*ModuleService_GetModule_Call) Return ¶
func (_c *ModuleService_GetModule_Call) Return(_a0 *module.Module, _a1 error) *ModuleService_GetModule_Call
func (*ModuleService_GetModule_Call) Run ¶
func (_c *ModuleService_GetModule_Call) Run(run func(ctx context.Context, urn string)) *ModuleService_GetModule_Call
func (*ModuleService_GetModule_Call) RunAndReturn ¶
func (_c *ModuleService_GetModule_Call) RunAndReturn(run func(context.Context, string) (*module.Module, error)) *ModuleService_GetModule_Call
type ModuleService_ListModules_Call ¶
ModuleService_ListModules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListModules'
func (*ModuleService_ListModules_Call) Return ¶
func (_c *ModuleService_ListModules_Call) Return(_a0 []module.Module, _a1 error) *ModuleService_ListModules_Call
func (*ModuleService_ListModules_Call) Run ¶
func (_c *ModuleService_ListModules_Call) Run(run func(ctx context.Context, project string)) *ModuleService_ListModules_Call
func (*ModuleService_ListModules_Call) RunAndReturn ¶
func (_c *ModuleService_ListModules_Call) RunAndReturn(run func(context.Context, string) ([]module.Module, error)) *ModuleService_ListModules_Call
type ModuleService_UpdateModule_Call ¶
ModuleService_UpdateModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateModule'
func (*ModuleService_UpdateModule_Call) Return ¶
func (_c *ModuleService_UpdateModule_Call) Return(_a0 *module.Module, _a1 error) *ModuleService_UpdateModule_Call
func (*ModuleService_UpdateModule_Call) Run ¶
func (_c *ModuleService_UpdateModule_Call) Run(run func(ctx context.Context, urn string, newConfigs json.RawMessage)) *ModuleService_UpdateModule_Call
func (*ModuleService_UpdateModule_Call) RunAndReturn ¶
func (_c *ModuleService_UpdateModule_Call) RunAndReturn(run func(context.Context, string, json.RawMessage) (*module.Module, error)) *ModuleService_UpdateModule_Call
type ResourceService ¶
ResourceService is an autogenerated mock type for the ResourceService type
func NewResourceService ¶
func NewResourceService(t interface { mock.TestingT Cleanup(func()) }) *ResourceService
NewResourceService creates a new instance of ResourceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResourceService) ApplyAction ¶
func (_m *ResourceService) ApplyAction(ctx context.Context, urn string, action module.ActionRequest) (*resource.Resource, error)
ApplyAction provides a mock function with given fields: ctx, urn, action
func (*ResourceService) CreateResource ¶
func (_m *ResourceService) CreateResource(ctx context.Context, res resource.Resource) (*resource.Resource, error)
CreateResource provides a mock function with given fields: ctx, res
func (*ResourceService) DeleteResource ¶
func (_m *ResourceService) DeleteResource(ctx context.Context, urn string) error
DeleteResource provides a mock function with given fields: ctx, urn
func (*ResourceService) EXPECT ¶
func (_m *ResourceService) EXPECT() *ResourceService_Expecter
func (*ResourceService) GetLog ¶
func (_m *ResourceService) GetLog(ctx context.Context, urn string, filter map[string]string) (<-chan module.LogChunk, error)
GetLog provides a mock function with given fields: ctx, urn, filter
func (*ResourceService) GetResource ¶
GetResource provides a mock function with given fields: ctx, urn
func (*ResourceService) GetRevisions ¶
func (_m *ResourceService) GetRevisions(ctx context.Context, selector resource.RevisionsSelector) ([]resource.Revision, error)
GetRevisions provides a mock function with given fields: ctx, selector
func (*ResourceService) ListResources ¶
func (_m *ResourceService) ListResources(ctx context.Context, filter resource.Filter, withSpecConfigs bool) ([]resource.Resource, error)
ListResources provides a mock function with given fields: ctx, filter, withSpecConfigs
func (*ResourceService) UpdateResource ¶
func (_m *ResourceService) UpdateResource(ctx context.Context, urn string, req resource.UpdateRequest) (*resource.Resource, error)
UpdateResource provides a mock function with given fields: ctx, urn, req
type ResourceService_ApplyAction_Call ¶
ResourceService_ApplyAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAction'
func (*ResourceService_ApplyAction_Call) Return ¶
func (_c *ResourceService_ApplyAction_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_ApplyAction_Call
func (*ResourceService_ApplyAction_Call) Run ¶
func (_c *ResourceService_ApplyAction_Call) Run(run func(ctx context.Context, urn string, action module.ActionRequest)) *ResourceService_ApplyAction_Call
func (*ResourceService_ApplyAction_Call) RunAndReturn ¶
func (_c *ResourceService_ApplyAction_Call) RunAndReturn(run func(context.Context, string, module.ActionRequest) (*resource.Resource, error)) *ResourceService_ApplyAction_Call
type ResourceService_CreateResource_Call ¶
ResourceService_CreateResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateResource'
func (*ResourceService_CreateResource_Call) Return ¶
func (_c *ResourceService_CreateResource_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_CreateResource_Call
func (*ResourceService_CreateResource_Call) Run ¶
func (_c *ResourceService_CreateResource_Call) Run(run func(ctx context.Context, res resource.Resource)) *ResourceService_CreateResource_Call
func (*ResourceService_CreateResource_Call) RunAndReturn ¶
func (_c *ResourceService_CreateResource_Call) RunAndReturn(run func(context.Context, resource.Resource) (*resource.Resource, error)) *ResourceService_CreateResource_Call
type ResourceService_DeleteResource_Call ¶
ResourceService_DeleteResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteResource'
func (*ResourceService_DeleteResource_Call) Return ¶
func (_c *ResourceService_DeleteResource_Call) Return(_a0 error) *ResourceService_DeleteResource_Call
func (*ResourceService_DeleteResource_Call) Run ¶
func (_c *ResourceService_DeleteResource_Call) Run(run func(ctx context.Context, urn string)) *ResourceService_DeleteResource_Call
func (*ResourceService_DeleteResource_Call) RunAndReturn ¶
func (_c *ResourceService_DeleteResource_Call) RunAndReturn(run func(context.Context, string) error) *ResourceService_DeleteResource_Call
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceService_Expecter) ApplyAction ¶
func (_e *ResourceService_Expecter) ApplyAction(ctx interface{}, urn interface{}, action interface{}) *ResourceService_ApplyAction_Call
ApplyAction is a helper method to define mock.On call
- ctx context.Context
- urn string
- action module.ActionRequest
func (*ResourceService_Expecter) CreateResource ¶
func (_e *ResourceService_Expecter) CreateResource(ctx interface{}, res interface{}) *ResourceService_CreateResource_Call
CreateResource is a helper method to define mock.On call
- ctx context.Context
- res resource.Resource
func (*ResourceService_Expecter) DeleteResource ¶
func (_e *ResourceService_Expecter) DeleteResource(ctx interface{}, urn interface{}) *ResourceService_DeleteResource_Call
DeleteResource is a helper method to define mock.On call
- ctx context.Context
- urn string
func (*ResourceService_Expecter) GetLog ¶
func (_e *ResourceService_Expecter) GetLog(ctx interface{}, urn interface{}, filter interface{}) *ResourceService_GetLog_Call
GetLog is a helper method to define mock.On call
- ctx context.Context
- urn string
- filter map[string]string
func (*ResourceService_Expecter) GetResource ¶
func (_e *ResourceService_Expecter) GetResource(ctx interface{}, urn interface{}) *ResourceService_GetResource_Call
GetResource is a helper method to define mock.On call
- ctx context.Context
- urn string
func (*ResourceService_Expecter) GetRevisions ¶
func (_e *ResourceService_Expecter) GetRevisions(ctx interface{}, selector interface{}) *ResourceService_GetRevisions_Call
GetRevisions is a helper method to define mock.On call
- ctx context.Context
- selector resource.RevisionsSelector
func (*ResourceService_Expecter) ListResources ¶
func (_e *ResourceService_Expecter) ListResources(ctx interface{}, filter interface{}, withSpecConfigs interface{}) *ResourceService_ListResources_Call
ListResources is a helper method to define mock.On call
- ctx context.Context
- filter resource.Filter
- withSpecConfigs bool
func (*ResourceService_Expecter) UpdateResource ¶
func (_e *ResourceService_Expecter) UpdateResource(ctx interface{}, urn interface{}, req interface{}) *ResourceService_UpdateResource_Call
UpdateResource is a helper method to define mock.On call
- ctx context.Context
- urn string
- req resource.UpdateRequest
type ResourceService_GetLog_Call ¶
ResourceService_GetLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLog'
func (*ResourceService_GetLog_Call) Return ¶
func (_c *ResourceService_GetLog_Call) Return(_a0 <-chan module.LogChunk, _a1 error) *ResourceService_GetLog_Call
func (*ResourceService_GetLog_Call) Run ¶
func (_c *ResourceService_GetLog_Call) Run(run func(ctx context.Context, urn string, filter map[string]string)) *ResourceService_GetLog_Call
func (*ResourceService_GetLog_Call) RunAndReturn ¶
func (_c *ResourceService_GetLog_Call) RunAndReturn(run func(context.Context, string, map[string]string) (<-chan module.LogChunk, error)) *ResourceService_GetLog_Call
type ResourceService_GetResource_Call ¶
ResourceService_GetResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResource'
func (*ResourceService_GetResource_Call) Return ¶
func (_c *ResourceService_GetResource_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_GetResource_Call
func (*ResourceService_GetResource_Call) Run ¶
func (_c *ResourceService_GetResource_Call) Run(run func(ctx context.Context, urn string)) *ResourceService_GetResource_Call
func (*ResourceService_GetResource_Call) RunAndReturn ¶
func (_c *ResourceService_GetResource_Call) RunAndReturn(run func(context.Context, string) (*resource.Resource, error)) *ResourceService_GetResource_Call
type ResourceService_GetRevisions_Call ¶
ResourceService_GetRevisions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRevisions'
func (*ResourceService_GetRevisions_Call) Return ¶
func (_c *ResourceService_GetRevisions_Call) Return(_a0 []resource.Revision, _a1 error) *ResourceService_GetRevisions_Call
func (*ResourceService_GetRevisions_Call) Run ¶
func (_c *ResourceService_GetRevisions_Call) Run(run func(ctx context.Context, selector resource.RevisionsSelector)) *ResourceService_GetRevisions_Call
func (*ResourceService_GetRevisions_Call) RunAndReturn ¶
func (_c *ResourceService_GetRevisions_Call) RunAndReturn(run func(context.Context, resource.RevisionsSelector) ([]resource.Revision, error)) *ResourceService_GetRevisions_Call
type ResourceService_ListResources_Call ¶
ResourceService_ListResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResources'
func (*ResourceService_ListResources_Call) Return ¶
func (_c *ResourceService_ListResources_Call) Return(_a0 []resource.Resource, _a1 error) *ResourceService_ListResources_Call
func (*ResourceService_ListResources_Call) Run ¶
func (_c *ResourceService_ListResources_Call) Run(run func(ctx context.Context, filter resource.Filter, withSpecConfigs bool)) *ResourceService_ListResources_Call
func (*ResourceService_ListResources_Call) RunAndReturn ¶
func (_c *ResourceService_ListResources_Call) RunAndReturn(run func(context.Context, resource.Filter, bool) ([]resource.Resource, error)) *ResourceService_ListResources_Call
type ResourceService_UpdateResource_Call ¶
ResourceService_UpdateResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateResource'
func (*ResourceService_UpdateResource_Call) Return ¶
func (_c *ResourceService_UpdateResource_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceService_UpdateResource_Call
func (*ResourceService_UpdateResource_Call) Run ¶
func (_c *ResourceService_UpdateResource_Call) Run(run func(ctx context.Context, urn string, req resource.UpdateRequest)) *ResourceService_UpdateResource_Call
func (*ResourceService_UpdateResource_Call) RunAndReturn ¶
func (_c *ResourceService_UpdateResource_Call) RunAndReturn(run func(context.Context, string, resource.UpdateRequest) (*resource.Resource, error)) *ResourceService_UpdateResource_Call