Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockIStore
- func (m *MockIStore) Claim(ctx context.Context, request cron0.ClaimRequest) (cron0.ClaimResult, error)
- func (m *MockIStore) Complete(ctx context.Context, completion cron0.Completion) error
- func (m *MockIStore) EXPECT() *MockIStoreMockRecorder
- func (m *MockIStore) Expired(ctx context.Context, now time.Time, limit int) ([]cron.OccurrenceRecord, error)
- func (m *MockIStore) Reconcile(ctx context.Context, definitions []cron.TriggerDefinition, now time.Time) ([]cron.TriggerState, error)
- func (m *MockIStore) Renew(ctx context.Context, renewal cron0.LeaseRenewal) error
- func (m *MockIStore) Skip(ctx context.Context, request cron0.SkipRequest) error
- func (m *MockIStore) Snapshot(ctx context.Context) (cron.StoreSnapshot, error)
- type MockIStoreMockRecorder
- func (mr *MockIStoreMockRecorder) Claim(ctx, request any) *gomock.Call
- func (mr *MockIStoreMockRecorder) Complete(ctx, completion any) *gomock.Call
- func (mr *MockIStoreMockRecorder) Expired(ctx, now, limit any) *gomock.Call
- func (mr *MockIStoreMockRecorder) Reconcile(ctx, definitions, now any) *gomock.Call
- func (mr *MockIStoreMockRecorder) Renew(ctx, renewal any) *gomock.Call
- func (mr *MockIStoreMockRecorder) Skip(ctx, request any) *gomock.Call
- func (mr *MockIStoreMockRecorder) Snapshot(ctx any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIStore ¶
type MockIStore struct {
// contains filtered or unexported fields
}
MockIStore is a mock of IStore interface.
func NewMockIStore ¶
func NewMockIStore(ctrl *gomock.Controller) *MockIStore
NewMockIStore creates a new mock instance.
func (*MockIStore) Claim ¶
func (m *MockIStore) Claim(ctx context.Context, request cron0.ClaimRequest) (cron0.ClaimResult, error)
Claim mocks base method.
func (*MockIStore) Complete ¶
func (m *MockIStore) Complete(ctx context.Context, completion cron0.Completion) error
Complete mocks base method.
func (*MockIStore) EXPECT ¶
func (m *MockIStore) EXPECT() *MockIStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIStore) Expired ¶
func (m *MockIStore) Expired(ctx context.Context, now time.Time, limit int) ([]cron.OccurrenceRecord, error)
Expired mocks base method.
func (*MockIStore) Reconcile ¶
func (m *MockIStore) Reconcile(ctx context.Context, definitions []cron.TriggerDefinition, now time.Time) ([]cron.TriggerState, error)
Reconcile mocks base method.
func (*MockIStore) Renew ¶
func (m *MockIStore) Renew(ctx context.Context, renewal cron0.LeaseRenewal) error
Renew mocks base method.
func (*MockIStore) Skip ¶
func (m *MockIStore) Skip(ctx context.Context, request cron0.SkipRequest) error
Skip mocks base method.
func (*MockIStore) Snapshot ¶
func (m *MockIStore) Snapshot(ctx context.Context) (cron.StoreSnapshot, error)
Snapshot mocks base method.
type MockIStoreMockRecorder ¶
type MockIStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockIStoreMockRecorder is the mock recorder for MockIStore.
func (*MockIStoreMockRecorder) Claim ¶
func (mr *MockIStoreMockRecorder) Claim(ctx, request any) *gomock.Call
Claim indicates an expected call of Claim.
func (*MockIStoreMockRecorder) Complete ¶
func (mr *MockIStoreMockRecorder) Complete(ctx, completion any) *gomock.Call
Complete indicates an expected call of Complete.
func (*MockIStoreMockRecorder) Expired ¶
func (mr *MockIStoreMockRecorder) Expired(ctx, now, limit any) *gomock.Call
Expired indicates an expected call of Expired.
func (*MockIStoreMockRecorder) Reconcile ¶
func (mr *MockIStoreMockRecorder) Reconcile(ctx, definitions, now any) *gomock.Call
Reconcile indicates an expected call of Reconcile.
func (*MockIStoreMockRecorder) Renew ¶
func (mr *MockIStoreMockRecorder) Renew(ctx, renewal any) *gomock.Call
Renew indicates an expected call of Renew.