Documentation
¶
Index ¶
- type Service
- func (service *Service) FS() filesystem.FS
- func (service *Service) GetAllJobs() ([]*models.Job, error)
- func (service *Service) GetJob(id uint) (*models.Job, error)
- func (service *Service) GetJobLog(jobID uint) (io.ReadCloser, error)
- func (service *Service) JobsDirectory() string
- 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) FS ¶
func (service *Service) FS() filesystem.FS
FS returns the services's filesystem
func (*Service) GetAllJobs ¶
GetAllJobs returns all jobs
func (*Service) GetJobLog ¶
func (service *Service) GetJobLog(jobID uint) (io.ReadCloser, error)
GetJobLog returns the log of a job
func (*Service) JobsDirectory ¶
JobsDirectory contains saved data for jobs such as logs
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.