Documentation ¶
Index ¶
- func NewJobService(config JobServiceConfig) services.IJobService
- type JobService
- func (s *JobService) Create(ctx context.Context, j *models.Job) error
- func (s *JobService) Delete(ctx context.Context, j *models.Job) error
- func (s *JobService) Find(ctx context.Context, filter *stores.JobFilter) (*models.Job, error)
- func (s *JobService) List(ctx context.Context, filter *stores.JobFilter) ([]*models.Job, error)
- func (s *JobService) UpdateState(ctx context.Context, jobId string, ...) error
- type JobServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJobService ¶
func NewJobService(config JobServiceConfig) services.IJobService
Types ¶
type JobService ¶
type JobService struct {
// contains filtered or unexported fields
}
func (*JobService) UpdateState ¶
func (s *JobService) UpdateState(ctx context.Context, jobId string, updateJobStateDto services.UpdateJobStateDTO) error
type JobServiceConfig ¶
type JobServiceConfig struct { JobStore stores.JobStore TrackTelemetryEvent func(event telemetry.Event, clientId string) error UpdateWorkspaceLastJob func(ctx context.Context, workspaceId string, jobId string) error UpdateTargetLastJob func(ctx context.Context, targetId string, jobId string) error UpdateBuildLastJob func(ctx context.Context, buildId string, jobId string) error }
Click to show internal directories.
Click to hide internal directories.