Documentation
¶
Index ¶
- type Service
- func (service *Service) CreateBuildJob(uploadID uint) (*models.Job, error)
- func (service *Service) GetAllJobArtifactsByJobID(jobID uint) ([]*models.JobArtifact, error)
- func (service *Service) GetAllJobs() ([]*models.Job, error)
- func (service *Service) GetAllJobsByUploadID(uploadID uint) ([]*models.Job, error)
- func (service *Service) GetJob(id uint) (*models.Job, error)
- func (service *Service) GetJobArtifact(jobID uint, filename string) (io.ReadCloser, error)
- func (service *Service) GetJobLog(jobID uint) (io.ReadCloser, error)
- func (service *Service) SaveJobArtifact(jobID uint, filename string, content io.Reader) error
- func (service *Service) SaveJobLog(jobID uint, content io.Reader) error
- func (service *Service) UnqueueNextJob() (*models.Job, error)
- func (service *Service) UpdateJob(job *models.Job) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages jobs
func (*Service) CreateBuildJob ¶ added in v0.8.0
CreateBuildJob creates a build job
func (*Service) GetAllJobArtifactsByJobID ¶ added in v0.8.0
func (service *Service) GetAllJobArtifactsByJobID(jobID uint) ([]*models.JobArtifact, error)
GetAllJobArtifactsByJobID returns a list of all artifacts for a job
func (*Service) GetAllJobs ¶
GetAllJobs returns all jobs
func (*Service) GetAllJobsByUploadID ¶ added in v0.8.0
GetAllJobsByUploadID returns all jobs for a given upload
func (*Service) GetJobArtifact ¶ added in v0.8.0
GetJobArtifact returns a job artifact
func (*Service) GetJobLog ¶
func (service *Service) GetJobLog(jobID uint) (io.ReadCloser, error)
GetJobLog returns the log of a job
func (*Service) SaveJobArtifact ¶ added in v0.8.0
SaveJobArtifact will save a job artifact
func (*Service) SaveJobLog ¶
SaveJobLog will save logs for a job
func (*Service) UnqueueNextJob ¶
UnqueueNextJob returns the next job and marks it as assigned
Click to show internal directories.
Click to hide internal directories.