Documentation ¶
Index ¶
- type JobCache
- func (_m *JobCache) AddJobs(_a0 []*types.Job)
- func (_m *JobCache) GetAllCachedJobs() []*types.Job
- func (_m *JobCache) GetJob(_a0 string) (*types.Job, error)
- func (_m *JobCache) GetJobMaybeExpired(_a0 context.Context, _a1 string) (*types.Job, error)
- func (_m *JobCache) GetJobsByRepoState(_a0 string, _a1 types.RepoState) ([]*types.Job, error)
- func (_m *JobCache) GetJobsFromDateRange(_a0 time.Time, _a1 time.Time) ([]*types.Job, error)
- func (_m *JobCache) GetMatchingJobsFromDateRange(names []string, from time.Time, to time.Time) (map[string][]*types.Job, error)
- func (_m *JobCache) InProgressJobs() ([]*types.Job, error)
- func (_m *JobCache) LastUpdated() time.Time
- func (_m *JobCache) RequestedJobs() ([]*types.Job, error)
- func (_m *JobCache) Update(ctx context.Context) error
- type TaskCache
- func (_m *TaskCache) AddTasks(tasks []*types.Task)
- func (_m *TaskCache) GetTask(id string) (*types.Task, error)
- func (_m *TaskCache) GetTaskForCommit(repo string, revision string, name string) (*types.Task, error)
- func (_m *TaskCache) GetTaskMaybeExpired(_a0 context.Context, _a1 string) (*types.Task, error)
- func (_m *TaskCache) GetTasksByKey(key types.TaskKey) ([]*types.Task, error)
- func (_m *TaskCache) GetTasksForCommits(repo string, commits []string) (map[string]map[string]*types.Task, error)
- func (_m *TaskCache) GetTasksFromDateRange(from time.Time, to time.Time) ([]*types.Task, error)
- func (_m *TaskCache) KnownTaskName(repo string, name string) bool
- func (_m *TaskCache) UnfinishedTasks() ([]*types.Task, error)
- func (_m *TaskCache) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobCache ¶
JobCache is an autogenerated mock type for the JobCache type
func NewJobCache ¶
NewJobCache creates a new instance of JobCache. 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 (*JobCache) GetAllCachedJobs ¶
GetAllCachedJobs provides a mock function with given fields:
func (*JobCache) GetJobMaybeExpired ¶
GetJobMaybeExpired provides a mock function with given fields: _a0, _a1
func (*JobCache) GetJobsByRepoState ¶
GetJobsByRepoState provides a mock function with given fields: _a0, _a1
func (*JobCache) GetJobsFromDateRange ¶
GetJobsFromDateRange provides a mock function with given fields: _a0, _a1
func (*JobCache) GetMatchingJobsFromDateRange ¶
func (_m *JobCache) GetMatchingJobsFromDateRange(names []string, from time.Time, to time.Time) (map[string][]*types.Job, error)
GetMatchingJobsFromDateRange provides a mock function with given fields: names, from, to
func (*JobCache) InProgressJobs ¶
InProgressJobs provides a mock function with given fields:
func (*JobCache) LastUpdated ¶
LastUpdated provides a mock function with given fields:
func (*JobCache) RequestedJobs ¶
RequestedJobs provides a mock function with given fields:
type TaskCache ¶
TaskCache is an autogenerated mock type for the TaskCache type
func NewTaskCache ¶
NewTaskCache creates a new instance of TaskCache. 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 (*TaskCache) GetTaskForCommit ¶
func (_m *TaskCache) GetTaskForCommit(repo string, revision string, name string) (*types.Task, error)
GetTaskForCommit provides a mock function with given fields: repo, revision, name
func (*TaskCache) GetTaskMaybeExpired ¶
GetTaskMaybeExpired provides a mock function with given fields: _a0, _a1
func (*TaskCache) GetTasksByKey ¶
GetTasksByKey provides a mock function with given fields: key
func (*TaskCache) GetTasksForCommits ¶
func (_m *TaskCache) GetTasksForCommits(repo string, commits []string) (map[string]map[string]*types.Task, error)
GetTasksForCommits provides a mock function with given fields: repo, commits
func (*TaskCache) GetTasksFromDateRange ¶
GetTasksFromDateRange provides a mock function with given fields: from, to
func (*TaskCache) KnownTaskName ¶
KnownTaskName provides a mock function with given fields: repo, name
func (*TaskCache) UnfinishedTasks ¶
UnfinishedTasks provides a mock function with given fields: