Documentation ¶
Index ¶
- type Executor
- type Executor_ExecAs_Call
- func (_c *Executor_ExecAs_Call) Return(_a0 string, _a1 error) *Executor_ExecAs_Call
- func (_c *Executor_ExecAs_Call) Run(run func(ctx context.Context, user string, cmd string)) *Executor_ExecAs_Call
- func (_c *Executor_ExecAs_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Executor_ExecAs_Call
- type Executor_Expecter
- type Scheduler
- func (_m *Scheduler) CancelJob(ctx context.Context, name string, user string) error
- func (_m *Scheduler) CancelJobByID(ctx context.Context, id uint64) error
- func (_m *Scheduler) EXPECT() *Scheduler_Expecter
- func (_m *Scheduler) FindCPUsPerNode(ctx context.Context, opts ...scheduler.FindSpecOption) ([]uint64, error)
- func (_m *Scheduler) FindGPUsPerNode(ctx context.Context, opts ...scheduler.FindSpecOption) ([]uint64, error)
- func (_m *Scheduler) FindMemPerNode(ctx context.Context, opts ...scheduler.FindSpecOption) ([]uint64, error)
- func (_m *Scheduler) FindRunningJobByName(ctx context.Context, name string, user string) (int, error)
- func (_m *Scheduler) FindTotalCPUs(ctx context.Context) (uint64, error)
- func (_m *Scheduler) FindTotalGPUs(ctx context.Context) (uint64, error)
- func (_m *Scheduler) FindTotalMem(ctx context.Context) (uint64, error)
- func (_m *Scheduler) FindTotalNodes(ctx context.Context, opts ...scheduler.FindSpecOption) (uint64, error)
- func (_m *Scheduler) HealthCheck(ctx context.Context) error
- func (_m *Scheduler) Submit(ctx context.Context, req *scheduler.SubmitRequest) (string, error)
- func (_m *Scheduler) TopUp(ctx context.Context, name string, additionalTime uint64) error
- type Scheduler_CancelJobByID_Call
- func (_c *Scheduler_CancelJobByID_Call) Return(_a0 error) *Scheduler_CancelJobByID_Call
- func (_c *Scheduler_CancelJobByID_Call) Run(run func(ctx context.Context, id uint64)) *Scheduler_CancelJobByID_Call
- func (_c *Scheduler_CancelJobByID_Call) RunAndReturn(run func(context.Context, uint64) error) *Scheduler_CancelJobByID_Call
- type Scheduler_CancelJob_Call
- func (_c *Scheduler_CancelJob_Call) Return(_a0 error) *Scheduler_CancelJob_Call
- func (_c *Scheduler_CancelJob_Call) Run(run func(ctx context.Context, name string, user string)) *Scheduler_CancelJob_Call
- func (_c *Scheduler_CancelJob_Call) RunAndReturn(run func(context.Context, string, string) error) *Scheduler_CancelJob_Call
- type Scheduler_Expecter
- func (_e *Scheduler_Expecter) CancelJob(ctx interface{}, name interface{}, user interface{}) *Scheduler_CancelJob_Call
- func (_e *Scheduler_Expecter) CancelJobByID(ctx interface{}, id interface{}) *Scheduler_CancelJobByID_Call
- func (_e *Scheduler_Expecter) FindCPUsPerNode(ctx interface{}, opts ...interface{}) *Scheduler_FindCPUsPerNode_Call
- func (_e *Scheduler_Expecter) FindGPUsPerNode(ctx interface{}, opts ...interface{}) *Scheduler_FindGPUsPerNode_Call
- func (_e *Scheduler_Expecter) FindMemPerNode(ctx interface{}, opts ...interface{}) *Scheduler_FindMemPerNode_Call
- func (_e *Scheduler_Expecter) FindRunningJobByName(ctx interface{}, name interface{}, user interface{}) *Scheduler_FindRunningJobByName_Call
- func (_e *Scheduler_Expecter) FindTotalCPUs(ctx interface{}) *Scheduler_FindTotalCPUs_Call
- func (_e *Scheduler_Expecter) FindTotalGPUs(ctx interface{}) *Scheduler_FindTotalGPUs_Call
- func (_e *Scheduler_Expecter) FindTotalMem(ctx interface{}) *Scheduler_FindTotalMem_Call
- func (_e *Scheduler_Expecter) FindTotalNodes(ctx interface{}, opts ...interface{}) *Scheduler_FindTotalNodes_Call
- func (_e *Scheduler_Expecter) HealthCheck(ctx interface{}) *Scheduler_HealthCheck_Call
- func (_e *Scheduler_Expecter) Submit(ctx interface{}, req interface{}) *Scheduler_Submit_Call
- func (_e *Scheduler_Expecter) TopUp(ctx interface{}, name interface{}, additionalTime interface{}) *Scheduler_TopUp_Call
- type Scheduler_FindCPUsPerNode_Call
- func (_c *Scheduler_FindCPUsPerNode_Call) Return(_a0 []uint64, _a1 error) *Scheduler_FindCPUsPerNode_Call
- func (_c *Scheduler_FindCPUsPerNode_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindCPUsPerNode_Call
- func (_c *Scheduler_FindCPUsPerNode_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) ([]uint64, error)) *Scheduler_FindCPUsPerNode_Call
- type Scheduler_FindGPUsPerNode_Call
- func (_c *Scheduler_FindGPUsPerNode_Call) Return(_a0 []uint64, _a1 error) *Scheduler_FindGPUsPerNode_Call
- func (_c *Scheduler_FindGPUsPerNode_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindGPUsPerNode_Call
- func (_c *Scheduler_FindGPUsPerNode_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) ([]uint64, error)) *Scheduler_FindGPUsPerNode_Call
- type Scheduler_FindMemPerNode_Call
- func (_c *Scheduler_FindMemPerNode_Call) Return(_a0 []uint64, _a1 error) *Scheduler_FindMemPerNode_Call
- func (_c *Scheduler_FindMemPerNode_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindMemPerNode_Call
- func (_c *Scheduler_FindMemPerNode_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) ([]uint64, error)) *Scheduler_FindMemPerNode_Call
- type Scheduler_FindRunningJobByName_Call
- func (_c *Scheduler_FindRunningJobByName_Call) Return(_a0 int, _a1 error) *Scheduler_FindRunningJobByName_Call
- func (_c *Scheduler_FindRunningJobByName_Call) Run(run func(ctx context.Context, name string, user string)) *Scheduler_FindRunningJobByName_Call
- func (_c *Scheduler_FindRunningJobByName_Call) RunAndReturn(run func(context.Context, string, string) (int, error)) *Scheduler_FindRunningJobByName_Call
- type Scheduler_FindTotalCPUs_Call
- func (_c *Scheduler_FindTotalCPUs_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalCPUs_Call
- func (_c *Scheduler_FindTotalCPUs_Call) Run(run func(ctx context.Context)) *Scheduler_FindTotalCPUs_Call
- func (_c *Scheduler_FindTotalCPUs_Call) RunAndReturn(run func(context.Context) (uint64, error)) *Scheduler_FindTotalCPUs_Call
- type Scheduler_FindTotalGPUs_Call
- func (_c *Scheduler_FindTotalGPUs_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalGPUs_Call
- func (_c *Scheduler_FindTotalGPUs_Call) Run(run func(ctx context.Context)) *Scheduler_FindTotalGPUs_Call
- func (_c *Scheduler_FindTotalGPUs_Call) RunAndReturn(run func(context.Context) (uint64, error)) *Scheduler_FindTotalGPUs_Call
- type Scheduler_FindTotalMem_Call
- func (_c *Scheduler_FindTotalMem_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalMem_Call
- func (_c *Scheduler_FindTotalMem_Call) Run(run func(ctx context.Context)) *Scheduler_FindTotalMem_Call
- func (_c *Scheduler_FindTotalMem_Call) RunAndReturn(run func(context.Context) (uint64, error)) *Scheduler_FindTotalMem_Call
- type Scheduler_FindTotalNodes_Call
- func (_c *Scheduler_FindTotalNodes_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalNodes_Call
- func (_c *Scheduler_FindTotalNodes_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindTotalNodes_Call
- func (_c *Scheduler_FindTotalNodes_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) (uint64, error)) *Scheduler_FindTotalNodes_Call
- type Scheduler_HealthCheck_Call
- type Scheduler_Submit_Call
- func (_c *Scheduler_Submit_Call) Return(_a0 string, _a1 error) *Scheduler_Submit_Call
- func (_c *Scheduler_Submit_Call) Run(run func(ctx context.Context, req *scheduler.SubmitRequest)) *Scheduler_Submit_Call
- func (_c *Scheduler_Submit_Call) RunAndReturn(run func(context.Context, *scheduler.SubmitRequest) (string, error)) *Scheduler_Submit_Call
- type Scheduler_TopUp_Call
- func (_c *Scheduler_TopUp_Call) Return(_a0 error) *Scheduler_TopUp_Call
- func (_c *Scheduler_TopUp_Call) Run(run func(ctx context.Context, name string, additionalTime uint64)) *Scheduler_TopUp_Call
- func (_c *Scheduler_TopUp_Call) RunAndReturn(run func(context.Context, string, uint64) error) *Scheduler_TopUp_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
Executor is an autogenerated mock type for the Executor type
func NewExecutor ¶
NewExecutor creates a new instance of Executor. 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 (*Executor) EXPECT ¶
func (_m *Executor) EXPECT() *Executor_Expecter
type Executor_ExecAs_Call ¶
Executor_ExecAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecAs'
func (*Executor_ExecAs_Call) Return ¶
func (_c *Executor_ExecAs_Call) Return(_a0 string, _a1 error) *Executor_ExecAs_Call
func (*Executor_ExecAs_Call) Run ¶
func (_c *Executor_ExecAs_Call) Run(run func(ctx context.Context, user string, cmd string)) *Executor_ExecAs_Call
func (*Executor_ExecAs_Call) RunAndReturn ¶
func (_c *Executor_ExecAs_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Executor_ExecAs_Call
type Executor_Expecter ¶
type Executor_Expecter struct {
// contains filtered or unexported fields
}
func (*Executor_Expecter) ExecAs ¶
func (_e *Executor_Expecter) ExecAs(ctx interface{}, user interface{}, cmd interface{}) *Executor_ExecAs_Call
ExecAs is a helper method to define mock.On call
- ctx context.Context
- user string
- cmd string
type Scheduler ¶
Scheduler is an autogenerated mock type for the Scheduler type
func NewScheduler ¶
NewScheduler creates a new instance of Scheduler. 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 (*Scheduler) CancelJobByID ¶ added in v0.16.2
CancelJobByID provides a mock function with given fields: ctx, id
func (*Scheduler) EXPECT ¶
func (_m *Scheduler) EXPECT() *Scheduler_Expecter
func (*Scheduler) FindCPUsPerNode ¶
func (_m *Scheduler) FindCPUsPerNode(ctx context.Context, opts ...scheduler.FindSpecOption) ([]uint64, error)
FindCPUsPerNode provides a mock function with given fields: ctx, opts
func (*Scheduler) FindGPUsPerNode ¶
func (_m *Scheduler) FindGPUsPerNode(ctx context.Context, opts ...scheduler.FindSpecOption) ([]uint64, error)
FindGPUsPerNode provides a mock function with given fields: ctx, opts
func (*Scheduler) FindMemPerNode ¶
func (_m *Scheduler) FindMemPerNode(ctx context.Context, opts ...scheduler.FindSpecOption) ([]uint64, error)
FindMemPerNode provides a mock function with given fields: ctx, opts
func (*Scheduler) FindRunningJobByName ¶
func (_m *Scheduler) FindRunningJobByName(ctx context.Context, name string, user string) (int, error)
FindRunningJobByName provides a mock function with given fields: ctx, name, user
func (*Scheduler) FindTotalCPUs ¶
FindTotalCPUs provides a mock function with given fields: ctx
func (*Scheduler) FindTotalGPUs ¶
FindTotalGPUs provides a mock function with given fields: ctx
func (*Scheduler) FindTotalMem ¶
FindTotalMem provides a mock function with given fields: ctx
func (*Scheduler) FindTotalNodes ¶
func (_m *Scheduler) FindTotalNodes(ctx context.Context, opts ...scheduler.FindSpecOption) (uint64, error)
FindTotalNodes provides a mock function with given fields: ctx, opts
func (*Scheduler) HealthCheck ¶
HealthCheck provides a mock function with given fields: ctx
type Scheduler_CancelJobByID_Call ¶ added in v0.16.2
Scheduler_CancelJobByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelJobByID'
func (*Scheduler_CancelJobByID_Call) Return ¶ added in v0.16.2
func (_c *Scheduler_CancelJobByID_Call) Return(_a0 error) *Scheduler_CancelJobByID_Call
func (*Scheduler_CancelJobByID_Call) Run ¶ added in v0.16.2
func (_c *Scheduler_CancelJobByID_Call) Run(run func(ctx context.Context, id uint64)) *Scheduler_CancelJobByID_Call
func (*Scheduler_CancelJobByID_Call) RunAndReturn ¶ added in v0.16.2
func (_c *Scheduler_CancelJobByID_Call) RunAndReturn(run func(context.Context, uint64) error) *Scheduler_CancelJobByID_Call
type Scheduler_CancelJob_Call ¶
Scheduler_CancelJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelJob'
func (*Scheduler_CancelJob_Call) Return ¶
func (_c *Scheduler_CancelJob_Call) Return(_a0 error) *Scheduler_CancelJob_Call
func (*Scheduler_CancelJob_Call) Run ¶
func (_c *Scheduler_CancelJob_Call) Run(run func(ctx context.Context, name string, user string)) *Scheduler_CancelJob_Call
func (*Scheduler_CancelJob_Call) RunAndReturn ¶
func (_c *Scheduler_CancelJob_Call) RunAndReturn(run func(context.Context, string, string) error) *Scheduler_CancelJob_Call
type Scheduler_Expecter ¶
type Scheduler_Expecter struct {
// contains filtered or unexported fields
}
func (*Scheduler_Expecter) CancelJob ¶
func (_e *Scheduler_Expecter) CancelJob(ctx interface{}, name interface{}, user interface{}) *Scheduler_CancelJob_Call
CancelJob is a helper method to define mock.On call
- ctx context.Context
- name string
- user string
func (*Scheduler_Expecter) CancelJobByID ¶ added in v0.16.2
func (_e *Scheduler_Expecter) CancelJobByID(ctx interface{}, id interface{}) *Scheduler_CancelJobByID_Call
CancelJobByID is a helper method to define mock.On call
- ctx context.Context
- id uint64
func (*Scheduler_Expecter) FindCPUsPerNode ¶
func (_e *Scheduler_Expecter) FindCPUsPerNode(ctx interface{}, opts ...interface{}) *Scheduler_FindCPUsPerNode_Call
FindCPUsPerNode is a helper method to define mock.On call
- ctx context.Context
- opts ...scheduler.FindSpecOption
func (*Scheduler_Expecter) FindGPUsPerNode ¶
func (_e *Scheduler_Expecter) FindGPUsPerNode(ctx interface{}, opts ...interface{}) *Scheduler_FindGPUsPerNode_Call
FindGPUsPerNode is a helper method to define mock.On call
- ctx context.Context
- opts ...scheduler.FindSpecOption
func (*Scheduler_Expecter) FindMemPerNode ¶
func (_e *Scheduler_Expecter) FindMemPerNode(ctx interface{}, opts ...interface{}) *Scheduler_FindMemPerNode_Call
FindMemPerNode is a helper method to define mock.On call
- ctx context.Context
- opts ...scheduler.FindSpecOption
func (*Scheduler_Expecter) FindRunningJobByName ¶
func (_e *Scheduler_Expecter) FindRunningJobByName(ctx interface{}, name interface{}, user interface{}) *Scheduler_FindRunningJobByName_Call
FindRunningJobByName is a helper method to define mock.On call
- ctx context.Context
- name string
- user string
func (*Scheduler_Expecter) FindTotalCPUs ¶
func (_e *Scheduler_Expecter) FindTotalCPUs(ctx interface{}) *Scheduler_FindTotalCPUs_Call
FindTotalCPUs is a helper method to define mock.On call
- ctx context.Context
func (*Scheduler_Expecter) FindTotalGPUs ¶
func (_e *Scheduler_Expecter) FindTotalGPUs(ctx interface{}) *Scheduler_FindTotalGPUs_Call
FindTotalGPUs is a helper method to define mock.On call
- ctx context.Context
func (*Scheduler_Expecter) FindTotalMem ¶
func (_e *Scheduler_Expecter) FindTotalMem(ctx interface{}) *Scheduler_FindTotalMem_Call
FindTotalMem is a helper method to define mock.On call
- ctx context.Context
func (*Scheduler_Expecter) FindTotalNodes ¶
func (_e *Scheduler_Expecter) FindTotalNodes(ctx interface{}, opts ...interface{}) *Scheduler_FindTotalNodes_Call
FindTotalNodes is a helper method to define mock.On call
- ctx context.Context
- opts ...scheduler.FindSpecOption
func (*Scheduler_Expecter) HealthCheck ¶
func (_e *Scheduler_Expecter) HealthCheck(ctx interface{}) *Scheduler_HealthCheck_Call
HealthCheck is a helper method to define mock.On call
- ctx context.Context
func (*Scheduler_Expecter) Submit ¶
func (_e *Scheduler_Expecter) Submit(ctx interface{}, req interface{}) *Scheduler_Submit_Call
Submit is a helper method to define mock.On call
- ctx context.Context
- req *scheduler.SubmitRequest
func (*Scheduler_Expecter) TopUp ¶
func (_e *Scheduler_Expecter) TopUp(ctx interface{}, name interface{}, additionalTime interface{}) *Scheduler_TopUp_Call
TopUp is a helper method to define mock.On call
- ctx context.Context
- name string
- additionalTime uint64
type Scheduler_FindCPUsPerNode_Call ¶
Scheduler_FindCPUsPerNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindCPUsPerNode'
func (*Scheduler_FindCPUsPerNode_Call) Return ¶
func (_c *Scheduler_FindCPUsPerNode_Call) Return(_a0 []uint64, _a1 error) *Scheduler_FindCPUsPerNode_Call
func (*Scheduler_FindCPUsPerNode_Call) Run ¶
func (_c *Scheduler_FindCPUsPerNode_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindCPUsPerNode_Call
func (*Scheduler_FindCPUsPerNode_Call) RunAndReturn ¶
func (_c *Scheduler_FindCPUsPerNode_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) ([]uint64, error)) *Scheduler_FindCPUsPerNode_Call
type Scheduler_FindGPUsPerNode_Call ¶
Scheduler_FindGPUsPerNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindGPUsPerNode'
func (*Scheduler_FindGPUsPerNode_Call) Return ¶
func (_c *Scheduler_FindGPUsPerNode_Call) Return(_a0 []uint64, _a1 error) *Scheduler_FindGPUsPerNode_Call
func (*Scheduler_FindGPUsPerNode_Call) Run ¶
func (_c *Scheduler_FindGPUsPerNode_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindGPUsPerNode_Call
func (*Scheduler_FindGPUsPerNode_Call) RunAndReturn ¶
func (_c *Scheduler_FindGPUsPerNode_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) ([]uint64, error)) *Scheduler_FindGPUsPerNode_Call
type Scheduler_FindMemPerNode_Call ¶
Scheduler_FindMemPerNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindMemPerNode'
func (*Scheduler_FindMemPerNode_Call) Return ¶
func (_c *Scheduler_FindMemPerNode_Call) Return(_a0 []uint64, _a1 error) *Scheduler_FindMemPerNode_Call
func (*Scheduler_FindMemPerNode_Call) Run ¶
func (_c *Scheduler_FindMemPerNode_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindMemPerNode_Call
func (*Scheduler_FindMemPerNode_Call) RunAndReturn ¶
func (_c *Scheduler_FindMemPerNode_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) ([]uint64, error)) *Scheduler_FindMemPerNode_Call
type Scheduler_FindRunningJobByName_Call ¶
Scheduler_FindRunningJobByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindRunningJobByName'
func (*Scheduler_FindRunningJobByName_Call) Return ¶
func (_c *Scheduler_FindRunningJobByName_Call) Return(_a0 int, _a1 error) *Scheduler_FindRunningJobByName_Call
func (*Scheduler_FindRunningJobByName_Call) Run ¶
func (_c *Scheduler_FindRunningJobByName_Call) Run(run func(ctx context.Context, name string, user string)) *Scheduler_FindRunningJobByName_Call
func (*Scheduler_FindRunningJobByName_Call) RunAndReturn ¶
func (_c *Scheduler_FindRunningJobByName_Call) RunAndReturn(run func(context.Context, string, string) (int, error)) *Scheduler_FindRunningJobByName_Call
type Scheduler_FindTotalCPUs_Call ¶
Scheduler_FindTotalCPUs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindTotalCPUs'
func (*Scheduler_FindTotalCPUs_Call) Return ¶
func (_c *Scheduler_FindTotalCPUs_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalCPUs_Call
func (*Scheduler_FindTotalCPUs_Call) Run ¶
func (_c *Scheduler_FindTotalCPUs_Call) Run(run func(ctx context.Context)) *Scheduler_FindTotalCPUs_Call
func (*Scheduler_FindTotalCPUs_Call) RunAndReturn ¶
func (_c *Scheduler_FindTotalCPUs_Call) RunAndReturn(run func(context.Context) (uint64, error)) *Scheduler_FindTotalCPUs_Call
type Scheduler_FindTotalGPUs_Call ¶
Scheduler_FindTotalGPUs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindTotalGPUs'
func (*Scheduler_FindTotalGPUs_Call) Return ¶
func (_c *Scheduler_FindTotalGPUs_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalGPUs_Call
func (*Scheduler_FindTotalGPUs_Call) Run ¶
func (_c *Scheduler_FindTotalGPUs_Call) Run(run func(ctx context.Context)) *Scheduler_FindTotalGPUs_Call
func (*Scheduler_FindTotalGPUs_Call) RunAndReturn ¶
func (_c *Scheduler_FindTotalGPUs_Call) RunAndReturn(run func(context.Context) (uint64, error)) *Scheduler_FindTotalGPUs_Call
type Scheduler_FindTotalMem_Call ¶
Scheduler_FindTotalMem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindTotalMem'
func (*Scheduler_FindTotalMem_Call) Return ¶
func (_c *Scheduler_FindTotalMem_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalMem_Call
func (*Scheduler_FindTotalMem_Call) Run ¶
func (_c *Scheduler_FindTotalMem_Call) Run(run func(ctx context.Context)) *Scheduler_FindTotalMem_Call
func (*Scheduler_FindTotalMem_Call) RunAndReturn ¶
func (_c *Scheduler_FindTotalMem_Call) RunAndReturn(run func(context.Context) (uint64, error)) *Scheduler_FindTotalMem_Call
type Scheduler_FindTotalNodes_Call ¶
Scheduler_FindTotalNodes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindTotalNodes'
func (*Scheduler_FindTotalNodes_Call) Return ¶
func (_c *Scheduler_FindTotalNodes_Call) Return(_a0 uint64, _a1 error) *Scheduler_FindTotalNodes_Call
func (*Scheduler_FindTotalNodes_Call) Run ¶
func (_c *Scheduler_FindTotalNodes_Call) Run(run func(ctx context.Context, opts ...scheduler.FindSpecOption)) *Scheduler_FindTotalNodes_Call
func (*Scheduler_FindTotalNodes_Call) RunAndReturn ¶
func (_c *Scheduler_FindTotalNodes_Call) RunAndReturn(run func(context.Context, ...scheduler.FindSpecOption) (uint64, error)) *Scheduler_FindTotalNodes_Call
type Scheduler_HealthCheck_Call ¶
Scheduler_HealthCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthCheck'
func (*Scheduler_HealthCheck_Call) Return ¶
func (_c *Scheduler_HealthCheck_Call) Return(_a0 error) *Scheduler_HealthCheck_Call
func (*Scheduler_HealthCheck_Call) Run ¶
func (_c *Scheduler_HealthCheck_Call) Run(run func(ctx context.Context)) *Scheduler_HealthCheck_Call
func (*Scheduler_HealthCheck_Call) RunAndReturn ¶
func (_c *Scheduler_HealthCheck_Call) RunAndReturn(run func(context.Context) error) *Scheduler_HealthCheck_Call
type Scheduler_Submit_Call ¶
Scheduler_Submit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Submit'
func (*Scheduler_Submit_Call) Return ¶
func (_c *Scheduler_Submit_Call) Return(_a0 string, _a1 error) *Scheduler_Submit_Call
func (*Scheduler_Submit_Call) Run ¶
func (_c *Scheduler_Submit_Call) Run(run func(ctx context.Context, req *scheduler.SubmitRequest)) *Scheduler_Submit_Call
func (*Scheduler_Submit_Call) RunAndReturn ¶
func (_c *Scheduler_Submit_Call) RunAndReturn(run func(context.Context, *scheduler.SubmitRequest) (string, error)) *Scheduler_Submit_Call
type Scheduler_TopUp_Call ¶
Scheduler_TopUp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TopUp'
func (*Scheduler_TopUp_Call) Return ¶
func (_c *Scheduler_TopUp_Call) Return(_a0 error) *Scheduler_TopUp_Call
func (*Scheduler_TopUp_Call) Run ¶
func (_c *Scheduler_TopUp_Call) Run(run func(ctx context.Context, name string, additionalTime uint64)) *Scheduler_TopUp_Call
func (*Scheduler_TopUp_Call) RunAndReturn ¶
func (_c *Scheduler_TopUp_Call) RunAndReturn(run func(context.Context, string, uint64) error) *Scheduler_TopUp_Call