Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockJob
- func (m *MockJob) EXPECT() *MockJobMockRecorder
- func (m *MockJob) GetTask(arg0 context.Context, arg1 *job.GetTaskRequest, ...) (*job.GetTaskResponse, error)
- func (m *MockJob) ListTaskEntries(arg0 context.Context, arg1 *job.ListTaskEntriesRequest, ...) (*job.ListTaskEntriesResponse, error)
- func (m *MockJob) PreheatAllPeers(arg0 context.Context, arg1 *job.PreheatRequest, ...) (*job.PreheatResponse, error)
- func (m *MockJob) PreheatAllSeedPeers(arg0 context.Context, arg1 *job.PreheatRequest, ...) (*job.PreheatResponse, error)
- func (m *MockJob) PreheatSingleSeedPeer(arg0 context.Context, arg1 *job.PreheatRequest, ...) (*job.PreheatResponse, error)
- func (m *MockJob) Serve()
- type MockJobMockRecorder
- func (mr *MockJobMockRecorder) GetTask(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockJobMockRecorder) ListTaskEntries(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockJobMockRecorder) PreheatAllPeers(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockJobMockRecorder) PreheatAllSeedPeers(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockJobMockRecorder) PreheatSingleSeedPeer(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockJobMockRecorder) Serve() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockJob ¶
type MockJob struct {
// contains filtered or unexported fields
}
MockJob is a mock of Job interface.
func NewMockJob ¶
func NewMockJob(ctrl *gomock.Controller) *MockJob
NewMockJob creates a new mock instance.
func (*MockJob) EXPECT ¶
func (m *MockJob) EXPECT() *MockJobMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJob) GetTask ¶ added in v2.3.1
func (m *MockJob) GetTask(arg0 context.Context, arg1 *job.GetTaskRequest, arg2 *logger.SugaredLoggerOnWith) (*job.GetTaskResponse, error)
GetTask mocks base method.
func (*MockJob) ListTaskEntries ¶ added in v2.3.4
func (m *MockJob) ListTaskEntries(arg0 context.Context, arg1 *job.ListTaskEntriesRequest, arg2 *logger.SugaredLoggerOnWith) (*job.ListTaskEntriesResponse, error)
ListTaskEntries mocks base method.
func (*MockJob) PreheatAllPeers ¶ added in v2.3.1
func (m *MockJob) PreheatAllPeers(arg0 context.Context, arg1 *job.PreheatRequest, arg2 *logger.SugaredLoggerOnWith) (*job.PreheatResponse, error)
PreheatAllPeers mocks base method.
func (*MockJob) PreheatAllSeedPeers ¶ added in v2.3.1
func (m *MockJob) PreheatAllSeedPeers(arg0 context.Context, arg1 *job.PreheatRequest, arg2 *logger.SugaredLoggerOnWith) (*job.PreheatResponse, error)
PreheatAllSeedPeers mocks base method.
func (*MockJob) PreheatSingleSeedPeer ¶ added in v2.3.1
func (m *MockJob) PreheatSingleSeedPeer(arg0 context.Context, arg1 *job.PreheatRequest, arg2 *logger.SugaredLoggerOnWith) (*job.PreheatResponse, error)
PreheatSingleSeedPeer mocks base method.
type MockJobMockRecorder ¶
type MockJobMockRecorder struct {
// contains filtered or unexported fields
}
MockJobMockRecorder is the mock recorder for MockJob.
func (*MockJobMockRecorder) GetTask ¶ added in v2.3.1
func (mr *MockJobMockRecorder) GetTask(arg0, arg1, arg2 any) *gomock.Call
GetTask indicates an expected call of GetTask.
func (*MockJobMockRecorder) ListTaskEntries ¶ added in v2.3.4
func (mr *MockJobMockRecorder) ListTaskEntries(arg0, arg1, arg2 any) *gomock.Call
ListTaskEntries indicates an expected call of ListTaskEntries.
func (*MockJobMockRecorder) PreheatAllPeers ¶ added in v2.3.1
func (mr *MockJobMockRecorder) PreheatAllPeers(arg0, arg1, arg2 any) *gomock.Call
PreheatAllPeers indicates an expected call of PreheatAllPeers.
func (*MockJobMockRecorder) PreheatAllSeedPeers ¶ added in v2.3.1
func (mr *MockJobMockRecorder) PreheatAllSeedPeers(arg0, arg1, arg2 any) *gomock.Call
PreheatAllSeedPeers indicates an expected call of PreheatAllSeedPeers.
func (*MockJobMockRecorder) PreheatSingleSeedPeer ¶ added in v2.3.1
func (mr *MockJobMockRecorder) PreheatSingleSeedPeer(arg0, arg1, arg2 any) *gomock.Call
PreheatSingleSeedPeer indicates an expected call of PreheatSingleSeedPeer.
func (*MockJobMockRecorder) Serve ¶
func (mr *MockJobMockRecorder) Serve() *gomock.Call
Serve indicates an expected call of Serve.