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