Documentation ¶
Index ¶
- type Redis
- func (rs *Redis) CreateJob(j *domain.Job) error
- func (rs *Redis) CreateJobResult(result *domain.JobResult) error
- func (rs *Redis) CreatePipeline(p *domain.Pipeline) error
- func (rs *Redis) DeleteJob(id string) error
- func (rs *Redis) DeleteJobResult(jobID string) error
- func (rs *Redis) DeletePipeline(id string) error
- func (rs *Redis) GetDueJobs() ([]*domain.Job, error)
- func (rs *Redis) GetJob(id string) (*domain.Job, error)
- func (rs *Redis) GetJobResult(jobID string) (*domain.JobResult, error)
- func (rs *Redis) GetJobs(status domain.JobStatus) ([]*domain.Job, error)
- func (rs *Redis) GetJobsByPipelineID(pipelineID string) ([]*domain.Job, error)
- func (rs *Redis) GetPipeline(id string) (*domain.Pipeline, error)
- func (rs *Redis) GetPipelines(status domain.JobStatus) ([]*domain.Pipeline, error)
- func (rs *Redis) UpdateJob(id string, j *domain.Job) error
- func (rs *Redis) UpdateJobResult(jobID string, result *domain.JobResult) error
- func (rs *Redis) UpdatePipeline(id string, p *domain.Pipeline) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
*rs.RedisClient
}
Redis represents a redis client.
func (*Redis) CreateJobResult ¶
CreateJobResult adds a new job result to the repository.
func (*Redis) CreatePipeline ¶ added in v0.8.0
CreatePipeline adds a new pipeline and of its jobs to the repository.
func (*Redis) DeleteJobResult ¶
DeleteJobResult deletes a job result from the repository.
func (*Redis) DeletePipeline ¶ added in v0.8.0
DeletePipeline deletes a pipeline and all its jobs from the repository.
func (*Redis) GetDueJobs ¶
GetDueJobs fetches all jobs scheduled to run before now and have not been scheduled yet.
func (*Redis) GetJobResult ¶
GetJobResult fetches a job result from the repository.
func (*Redis) GetJobs ¶
GetJobs fetches all jobs from the repository, optionally filters the jobs by status.
func (*Redis) GetJobsByPipelineID ¶ added in v0.8.0
GetJobsByPipelineID fetches the jobs of the specified pipeline.
func (*Redis) GetPipeline ¶ added in v0.8.0
GetPipeline fetches a pipeline from the repository.
func (*Redis) GetPipelines ¶ added in v0.8.0
GetPipelines fetches all pipelines from the repository, optionally filters the pipelines by status.
func (*Redis) UpdateJobResult ¶
UpdateJobResult updates a job result to the repository.