Documentation ¶
Index ¶
- type JobFetcher
- type JobFetcher_Expecter
- type JobFetcher_GetJob_Call
- func (_c *JobFetcher_GetJob_Call) Return(_a0 types.Job, _a1 error) *JobFetcher_GetJob_Call
- func (_c *JobFetcher_GetJob_Call) Run(run func(ctx context.Context, id [32]byte)) *JobFetcher_GetJob_Call
- func (_c *JobFetcher_GetJob_Call) RunAndReturn(run func(context.Context, [32]byte) (types.Job, error)) *JobFetcher_GetJob_Call
- type JobFetcher_GetJobs_Call
- func (_c *JobFetcher_GetJobs_Call) Return(_a0 types.JobLazyIterator, _a1 error) *JobFetcher_GetJobs_Call
- func (_c *JobFetcher_GetJobs_Call) Run(run func(ctx context.Context)) *JobFetcher_GetJobs_Call
- func (_c *JobFetcher_GetJobs_Call) RunAndReturn(run func(context.Context) (types.JobLazyIterator, error)) *JobFetcher_GetJobs_Call
- type MetaScheduledJobsIdsFetcher
- type MetaScheduledJobsIdsFetcher_Expecter
- type MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call
- func (_c *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Return(_a0 [][32]byte, _a1 error) *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call
- func (_c *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Run(run func(ctx context.Context)) *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call
- func (_c *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn(run func(context.Context) ([][32]byte, error)) *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobFetcher ¶
JobFetcher is an autogenerated mock type for the JobFetcher type
func NewJobFetcher ¶
func NewJobFetcher(t interface { mock.TestingT Cleanup(func()) }) *JobFetcher
NewJobFetcher creates a new instance of JobFetcher. 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 (*JobFetcher) EXPECT ¶
func (_m *JobFetcher) EXPECT() *JobFetcher_Expecter
func (*JobFetcher) GetJobs ¶
func (_m *JobFetcher) GetJobs(ctx context.Context) (types.JobLazyIterator, error)
GetJobs provides a mock function with given fields: ctx
type JobFetcher_Expecter ¶
type JobFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*JobFetcher_Expecter) GetJob ¶
func (_e *JobFetcher_Expecter) GetJob(ctx interface{}, id interface{}) *JobFetcher_GetJob_Call
GetJob is a helper method to define mock.On call
- ctx context.Context
- id [32]byte
func (*JobFetcher_Expecter) GetJobs ¶
func (_e *JobFetcher_Expecter) GetJobs(ctx interface{}) *JobFetcher_GetJobs_Call
GetJobs is a helper method to define mock.On call
- ctx context.Context
type JobFetcher_GetJob_Call ¶
JobFetcher_GetJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJob'
func (*JobFetcher_GetJob_Call) Return ¶
func (_c *JobFetcher_GetJob_Call) Return(_a0 types.Job, _a1 error) *JobFetcher_GetJob_Call
func (*JobFetcher_GetJob_Call) Run ¶
func (_c *JobFetcher_GetJob_Call) Run(run func(ctx context.Context, id [32]byte)) *JobFetcher_GetJob_Call
func (*JobFetcher_GetJob_Call) RunAndReturn ¶
func (_c *JobFetcher_GetJob_Call) RunAndReturn(run func(context.Context, [32]byte) (types.Job, error)) *JobFetcher_GetJob_Call
type JobFetcher_GetJobs_Call ¶
JobFetcher_GetJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobs'
func (*JobFetcher_GetJobs_Call) Return ¶
func (_c *JobFetcher_GetJobs_Call) Return(_a0 types.JobLazyIterator, _a1 error) *JobFetcher_GetJobs_Call
func (*JobFetcher_GetJobs_Call) Run ¶
func (_c *JobFetcher_GetJobs_Call) Run(run func(ctx context.Context)) *JobFetcher_GetJobs_Call
func (*JobFetcher_GetJobs_Call) RunAndReturn ¶
func (_c *JobFetcher_GetJobs_Call) RunAndReturn(run func(context.Context) (types.JobLazyIterator, error)) *JobFetcher_GetJobs_Call
type MetaScheduledJobsIdsFetcher ¶
MetaScheduledJobsIdsFetcher is an autogenerated mock type for the MetaScheduledJobsIdsFetcher type
func NewMetaScheduledJobsIdsFetcher ¶
func NewMetaScheduledJobsIdsFetcher(t interface { mock.TestingT Cleanup(func()) }) *MetaScheduledJobsIdsFetcher
NewMetaScheduledJobsIdsFetcher creates a new instance of MetaScheduledJobsIdsFetcher. 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 (*MetaScheduledJobsIdsFetcher) EXPECT ¶
func (_m *MetaScheduledJobsIdsFetcher) EXPECT() *MetaScheduledJobsIdsFetcher_Expecter
func (*MetaScheduledJobsIdsFetcher) GetMetaScheduledJobIDs ¶
func (_m *MetaScheduledJobsIdsFetcher) GetMetaScheduledJobIDs(ctx context.Context) ([][32]byte, error)
GetMetaScheduledJobIDs provides a mock function with given fields: ctx
type MetaScheduledJobsIdsFetcher_Expecter ¶
type MetaScheduledJobsIdsFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*MetaScheduledJobsIdsFetcher_Expecter) GetMetaScheduledJobIDs ¶
func (_e *MetaScheduledJobsIdsFetcher_Expecter) GetMetaScheduledJobIDs(ctx interface{}) *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call
GetMetaScheduledJobIDs is a helper method to define mock.On call
- ctx context.Context
type MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call ¶
MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetaScheduledJobIDs'
func (*MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Return ¶
func (_c *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Return(_a0 [][32]byte, _a1 error) *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call
func (*MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Run ¶
func (_c *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Run(run func(ctx context.Context)) *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call
func (*MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn ¶
func (_c *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn(run func(context.Context) ([][32]byte, error)) *MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call