Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the interface to the redis store
func (*Client) RepoJobs ¶
func (c *Client) RepoJobs() *RepoJobsClient
RepoJobs returns a client for managing repo job entries
type RepoJobState ¶
RepoJobState denotes the state of a job
type RepoJobsClient ¶
type RepoJobsClient struct {
// contains filtered or unexported fields
}
RepoJobsClient exposes an API for interacting with repo job entries
func (*RepoJobsClient) Dequeue ¶
func (r *RepoJobsClient) Dequeue(timeout time.Duration) (<-chan *RepoJob, <-chan error)
Dequeue grabs the next repo job
func (*RepoJobsClient) GetState ¶
func (r *RepoJobsClient) GetState(jobID uuid.UUID) (*RepoJobState, error)
GetState retrieves the state of the given job ID
func (*RepoJobsClient) Queue ¶
func (r *RepoJobsClient) Queue(job *RepoJob) error
Queue queues a repo for update
func (*RepoJobsClient) SetState ¶
func (r *RepoJobsClient) SetState(jobID uuid.UUID, state *RepoJobState) error
SetState updates the state of the given job ID with the given state
Click to show internal directories.
Click to hide internal directories.