Documentation
¶
Index ¶
- type AsyncWorker
- type AsyncWorker_Enqueue_Call
- type AsyncWorker_Expecter
- type LoggableModule
- func (_m *LoggableModule) EXPECT() *LoggableModule_Expecter
- func (_m *LoggableModule) Log(ctx context.Context, spec module.Spec, filter map[string]string) (<-chan module.LogChunk, error)
- func (_m *LoggableModule) Plan(ctx context.Context, spec module.Spec, act module.ActionRequest) (*resource.Resource, error)
- func (_m *LoggableModule) Sync(ctx context.Context, spec module.Spec) (*resource.State, error)
- type LoggableModule_Expecter
- func (_e *LoggableModule_Expecter) Log(ctx interface{}, spec interface{}, filter interface{}) *LoggableModule_Log_Call
- func (_e *LoggableModule_Expecter) Plan(ctx interface{}, spec interface{}, act interface{}) *LoggableModule_Plan_Call
- func (_e *LoggableModule_Expecter) Sync(ctx interface{}, spec interface{}) *LoggableModule_Sync_Call
- type LoggableModule_Log_Call
- type LoggableModule_Plan_Call
- type LoggableModule_Sync_Call
- type Module
- type Module_Expecter
- type Module_Plan_Call
- type Module_Sync_Call
- type ResourceStore
- func (_m *ResourceStore) Create(ctx context.Context, r resource.Resource, hooks ...resource.MutationHook) error
- func (_m *ResourceStore) Delete(ctx context.Context, urn string, hooks ...resource.MutationHook) error
- func (_m *ResourceStore) EXPECT() *ResourceStore_Expecter
- func (_m *ResourceStore) GetByURN(ctx context.Context, urn string) (*resource.Resource, error)
- func (_m *ResourceStore) List(ctx context.Context, filter resource.Filter) ([]resource.Resource, error)
- func (_m *ResourceStore) Update(ctx context.Context, r resource.Resource, hooks ...resource.MutationHook) error
- type ResourceStore_Create_Call
- type ResourceStore_Delete_Call
- type ResourceStore_Expecter
- func (_e *ResourceStore_Expecter) Create(ctx interface{}, r interface{}, hooks ...interface{}) *ResourceStore_Create_Call
- func (_e *ResourceStore_Expecter) Delete(ctx interface{}, urn interface{}, hooks ...interface{}) *ResourceStore_Delete_Call
- func (_e *ResourceStore_Expecter) GetByURN(ctx interface{}, urn interface{}) *ResourceStore_GetByURN_Call
- func (_e *ResourceStore_Expecter) List(ctx interface{}, filter interface{}) *ResourceStore_List_Call
- func (_e *ResourceStore_Expecter) Update(ctx interface{}, r interface{}, hooks ...interface{}) *ResourceStore_Update_Call
- type ResourceStore_GetByURN_Call
- type ResourceStore_List_Call
- type ResourceStore_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncWorker ¶
AsyncWorker is an autogenerated mock type for the AsyncWorker type
func (*AsyncWorker) EXPECT ¶
func (_m *AsyncWorker) EXPECT() *AsyncWorker_Expecter
type AsyncWorker_Enqueue_Call ¶
AsyncWorker_Enqueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enqueue'
func (*AsyncWorker_Enqueue_Call) Return ¶
func (_c *AsyncWorker_Enqueue_Call) Return(_a0 error) *AsyncWorker_Enqueue_Call
func (*AsyncWorker_Enqueue_Call) Run ¶
func (_c *AsyncWorker_Enqueue_Call) Run(run func(ctx context.Context, jobs ...worker.Job)) *AsyncWorker_Enqueue_Call
type AsyncWorker_Expecter ¶
type AsyncWorker_Expecter struct {
// contains filtered or unexported fields
}
func (*AsyncWorker_Expecter) Enqueue ¶
func (_e *AsyncWorker_Expecter) Enqueue(ctx interface{}, jobs ...interface{}) *AsyncWorker_Enqueue_Call
Enqueue is a helper method to define mock.On call
- ctx context.Context
- jobs ...worker.Job
type LoggableModule ¶
LoggableModule is an autogenerated mock type for the Loggable type
func (*LoggableModule) EXPECT ¶
func (_m *LoggableModule) EXPECT() *LoggableModule_Expecter
func (*LoggableModule) Log ¶
func (_m *LoggableModule) Log(ctx context.Context, spec module.Spec, filter map[string]string) (<-chan module.LogChunk, error)
Log provides a mock function with given fields: ctx, spec, filter
type LoggableModule_Expecter ¶
type LoggableModule_Expecter struct {
// contains filtered or unexported fields
}
func (*LoggableModule_Expecter) Log ¶
func (_e *LoggableModule_Expecter) Log(ctx interface{}, spec interface{}, filter interface{}) *LoggableModule_Log_Call
Log is a helper method to define mock.On call
- ctx context.Context
- spec module.Spec
- filter map[string]string
func (*LoggableModule_Expecter) Plan ¶
func (_e *LoggableModule_Expecter) Plan(ctx interface{}, spec interface{}, act interface{}) *LoggableModule_Plan_Call
Plan is a helper method to define mock.On call
- ctx context.Context
- spec module.Spec
- act module.ActionRequest
func (*LoggableModule_Expecter) Sync ¶
func (_e *LoggableModule_Expecter) Sync(ctx interface{}, spec interface{}) *LoggableModule_Sync_Call
Sync is a helper method to define mock.On call
- ctx context.Context
- spec module.Spec
type LoggableModule_Log_Call ¶
LoggableModule_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'
func (*LoggableModule_Log_Call) Return ¶
func (_c *LoggableModule_Log_Call) Return(_a0 <-chan module.LogChunk, _a1 error) *LoggableModule_Log_Call
func (*LoggableModule_Log_Call) Run ¶
func (_c *LoggableModule_Log_Call) Run(run func(ctx context.Context, spec module.Spec, filter map[string]string)) *LoggableModule_Log_Call
type LoggableModule_Plan_Call ¶
LoggableModule_Plan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Plan'
func (*LoggableModule_Plan_Call) Return ¶
func (_c *LoggableModule_Plan_Call) Return(_a0 *resource.Resource, _a1 error) *LoggableModule_Plan_Call
func (*LoggableModule_Plan_Call) Run ¶
func (_c *LoggableModule_Plan_Call) Run(run func(ctx context.Context, spec module.Spec, act module.ActionRequest)) *LoggableModule_Plan_Call
type LoggableModule_Sync_Call ¶
LoggableModule_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*LoggableModule_Sync_Call) Return ¶
func (_c *LoggableModule_Sync_Call) Return(_a0 *resource.State, _a1 error) *LoggableModule_Sync_Call
func (*LoggableModule_Sync_Call) Run ¶
func (_c *LoggableModule_Sync_Call) Run(run func(ctx context.Context, spec module.Spec)) *LoggableModule_Sync_Call
type Module ¶
Module is an autogenerated mock type for the Module type
func (*Module) EXPECT ¶
func (_m *Module) EXPECT() *Module_Expecter
type Module_Expecter ¶
type Module_Expecter struct {
// contains filtered or unexported fields
}
func (*Module_Expecter) Plan ¶
func (_e *Module_Expecter) Plan(ctx interface{}, spec interface{}, act interface{}) *Module_Plan_Call
Plan is a helper method to define mock.On call
- ctx context.Context
- spec module.Spec
- act module.ActionRequest
func (*Module_Expecter) Sync ¶
func (_e *Module_Expecter) Sync(ctx interface{}, spec interface{}) *Module_Sync_Call
Sync is a helper method to define mock.On call
- ctx context.Context
- spec module.Spec
type Module_Plan_Call ¶
Module_Plan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Plan'
func (*Module_Plan_Call) Return ¶
func (_c *Module_Plan_Call) Return(_a0 *resource.Resource, _a1 error) *Module_Plan_Call
func (*Module_Plan_Call) Run ¶
func (_c *Module_Plan_Call) Run(run func(ctx context.Context, spec module.Spec, act module.ActionRequest)) *Module_Plan_Call
type Module_Sync_Call ¶
Module_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*Module_Sync_Call) Return ¶
func (_c *Module_Sync_Call) Return(_a0 *resource.State, _a1 error) *Module_Sync_Call
func (*Module_Sync_Call) Run ¶
func (_c *Module_Sync_Call) Run(run func(ctx context.Context, spec module.Spec)) *Module_Sync_Call
type ResourceStore ¶
ResourceStore is an autogenerated mock type for the Store type
func (*ResourceStore) Create ¶
func (_m *ResourceStore) Create(ctx context.Context, r resource.Resource, hooks ...resource.MutationHook) error
Create provides a mock function with given fields: ctx, r, hooks
func (*ResourceStore) Delete ¶
func (_m *ResourceStore) Delete(ctx context.Context, urn string, hooks ...resource.MutationHook) error
Delete provides a mock function with given fields: ctx, urn, hooks
func (*ResourceStore) EXPECT ¶
func (_m *ResourceStore) EXPECT() *ResourceStore_Expecter
func (*ResourceStore) List ¶
func (_m *ResourceStore) List(ctx context.Context, filter resource.Filter) ([]resource.Resource, error)
List provides a mock function with given fields: ctx, filter
func (*ResourceStore) Update ¶
func (_m *ResourceStore) Update(ctx context.Context, r resource.Resource, hooks ...resource.MutationHook) error
Update provides a mock function with given fields: ctx, r, hooks
type ResourceStore_Create_Call ¶
ResourceStore_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ResourceStore_Create_Call) Return ¶
func (_c *ResourceStore_Create_Call) Return(_a0 error) *ResourceStore_Create_Call
func (*ResourceStore_Create_Call) Run ¶
func (_c *ResourceStore_Create_Call) Run(run func(ctx context.Context, r resource.Resource, hooks ...resource.MutationHook)) *ResourceStore_Create_Call
type ResourceStore_Delete_Call ¶
ResourceStore_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ResourceStore_Delete_Call) Return ¶
func (_c *ResourceStore_Delete_Call) Return(_a0 error) *ResourceStore_Delete_Call
func (*ResourceStore_Delete_Call) Run ¶
func (_c *ResourceStore_Delete_Call) Run(run func(ctx context.Context, urn string, hooks ...resource.MutationHook)) *ResourceStore_Delete_Call
type ResourceStore_Expecter ¶
type ResourceStore_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceStore_Expecter) Create ¶
func (_e *ResourceStore_Expecter) Create(ctx interface{}, r interface{}, hooks ...interface{}) *ResourceStore_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- r resource.Resource
- hooks ...resource.MutationHook
func (*ResourceStore_Expecter) Delete ¶
func (_e *ResourceStore_Expecter) Delete(ctx interface{}, urn interface{}, hooks ...interface{}) *ResourceStore_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- urn string
- hooks ...resource.MutationHook
func (*ResourceStore_Expecter) GetByURN ¶
func (_e *ResourceStore_Expecter) GetByURN(ctx interface{}, urn interface{}) *ResourceStore_GetByURN_Call
GetByURN is a helper method to define mock.On call
- ctx context.Context
- urn string
func (*ResourceStore_Expecter) List ¶
func (_e *ResourceStore_Expecter) List(ctx interface{}, filter interface{}) *ResourceStore_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter resource.Filter
func (*ResourceStore_Expecter) Update ¶
func (_e *ResourceStore_Expecter) Update(ctx interface{}, r interface{}, hooks ...interface{}) *ResourceStore_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- r resource.Resource
- hooks ...resource.MutationHook
type ResourceStore_GetByURN_Call ¶
ResourceStore_GetByURN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByURN'
func (*ResourceStore_GetByURN_Call) Return ¶
func (_c *ResourceStore_GetByURN_Call) Return(_a0 *resource.Resource, _a1 error) *ResourceStore_GetByURN_Call
func (*ResourceStore_GetByURN_Call) Run ¶
func (_c *ResourceStore_GetByURN_Call) Run(run func(ctx context.Context, urn string)) *ResourceStore_GetByURN_Call
type ResourceStore_List_Call ¶
ResourceStore_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ResourceStore_List_Call) Return ¶
func (_c *ResourceStore_List_Call) Return(_a0 []resource.Resource, _a1 error) *ResourceStore_List_Call
func (*ResourceStore_List_Call) Run ¶
func (_c *ResourceStore_List_Call) Run(run func(ctx context.Context, filter resource.Filter)) *ResourceStore_List_Call
type ResourceStore_Update_Call ¶
ResourceStore_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ResourceStore_Update_Call) Return ¶
func (_c *ResourceStore_Update_Call) Return(_a0 error) *ResourceStore_Update_Call
func (*ResourceStore_Update_Call) Run ¶
func (_c *ResourceStore_Update_Call) Run(run func(ctx context.Context, r resource.Resource, hooks ...resource.MutationHook)) *ResourceStore_Update_Call