mocks

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncWorker

type AsyncWorker struct {
	mock.Mock
}

AsyncWorker is an autogenerated mock type for the AsyncWorker type

func (*AsyncWorker) EXPECT

func (_m *AsyncWorker) EXPECT() *AsyncWorker_Expecter

func (*AsyncWorker) Enqueue

func (_m *AsyncWorker) Enqueue(ctx context.Context, jobs ...worker.Job) error

Enqueue provides a mock function with given fields: ctx, jobs

type AsyncWorker_Enqueue_Call

type AsyncWorker_Enqueue_Call struct {
	*mock.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 (*AsyncWorker_Enqueue_Call) Run

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

type LoggableModule struct {
	mock.Mock
}

LoggableModule is an autogenerated mock type for the Loggable type

func (*LoggableModule) EXPECT

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

func (*LoggableModule) Plan

Plan provides a mock function with given fields: ctx, spec, act

func (*LoggableModule) Sync

func (_m *LoggableModule) Sync(ctx context.Context, spec module.Spec) (*resource.State, error)

Sync provides a mock function with given fields: ctx, spec

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

type LoggableModule_Log_Call struct {
	*mock.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 (*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

type LoggableModule_Plan_Call struct {
	*mock.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 (*LoggableModule_Plan_Call) Run

type LoggableModule_Sync_Call

type LoggableModule_Sync_Call struct {
	*mock.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 (*LoggableModule_Sync_Call) Run

type Module

type Module struct {
	mock.Mock
}

Module is an autogenerated mock type for the Module type

func (*Module) EXPECT

func (_m *Module) EXPECT() *Module_Expecter

func (*Module) Plan

func (_m *Module) Plan(ctx context.Context, spec module.Spec, act module.ActionRequest) (*resource.Resource, error)

Plan provides a mock function with given fields: ctx, spec, act

func (*Module) Sync

func (_m *Module) Sync(ctx context.Context, spec module.Spec) (*resource.State, error)

Sync provides a mock function with given fields: ctx, spec

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

type Module_Plan_Call struct {
	*mock.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

type Module_Sync_Call struct {
	*mock.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

type ResourceStore struct {
	mock.Mock
}

ResourceStore is an autogenerated mock type for the Store type

func (*ResourceStore) Create

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) GetByURN

func (_m *ResourceStore) GetByURN(ctx context.Context, urn string) (*resource.Resource, error)

GetByURN provides a mock function with given fields: ctx, urn

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

Update provides a mock function with given fields: ctx, r, hooks

type ResourceStore_Create_Call

type ResourceStore_Create_Call struct {
	*mock.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 (*ResourceStore_Create_Call) Run

type ResourceStore_Delete_Call

type ResourceStore_Delete_Call struct {
	*mock.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 (*ResourceStore_Delete_Call) Run

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

type ResourceStore_GetByURN_Call struct {
	*mock.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 (*ResourceStore_GetByURN_Call) Run

type ResourceStore_List_Call

type ResourceStore_List_Call struct {
	*mock.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 (*ResourceStore_List_Call) Run

type ResourceStore_Update_Call

type ResourceStore_Update_Call struct {
	*mock.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 (*ResourceStore_Update_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL