Documentation
¶
Overview ¶
Package scheduler is a generated GoMock package.
Index ¶
- type MockExecutor
- func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
- func (m *MockExecutor) Exists(arg0 context.Context, arg1 entity.Workload) (bool, error)
- func (m *MockExecutor) GetState(arg0 context.Context, arg1 entity.Workload) (string, error)
- func (m *MockExecutor) Remove(arg0 context.Context, arg1 entity.Workload) error
- func (m *MockExecutor) Run(arg0 context.Context, arg1 entity.Workload) error
- func (m *MockExecutor) Stop(arg0 context.Context, arg1 entity.Workload) error
- type MockExecutorMockRecorder
- func (mr *MockExecutorMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) GetState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) Stop(arg0, arg1 interface{}) *gomock.Call
- type Scheduler
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExecutor ¶
type MockExecutor struct {
// contains filtered or unexported fields
}
MockExecutor is a mock of Executor interface.
func NewMockExecutor ¶
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor
NewMockExecutor creates a new mock instance.
func (*MockExecutor) EXPECT ¶
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockExecutorMockRecorder ¶
type MockExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorMockRecorder is the mock recorder for MockExecutor.
func (*MockExecutorMockRecorder) Exists ¶
func (mr *MockExecutorMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockExecutorMockRecorder) GetState ¶
func (mr *MockExecutorMockRecorder) GetState(arg0, arg1 interface{}) *gomock.Call
GetState indicates an expected call of GetState.
func (*MockExecutorMockRecorder) Remove ¶
func (mr *MockExecutorMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockExecutorMockRecorder) Run ¶
func (mr *MockExecutorMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockExecutorMockRecorder) Stop ¶
func (mr *MockExecutorMockRecorder) Stop(arg0, arg1 interface{}) *gomock.Call
Stop indicates an expected call of Stop.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewWitHeartbeatPeriod ¶
New creates a new scheduler with the hearbeat period provided by the user.
Click to show internal directories.
Click to hide internal directories.