Documentation ¶
Index ¶
- type Job
- type JobRepository
- func (j *JobRepository) GetAll(ctx context.Context, projectName tenant.ProjectName) ([]*scheduler.JobWithDetails, error)
- func (j *JobRepository) GetJob(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.Job, error)
- func (j *JobRepository) GetJobDetails(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.JobWithDetails, error)
- func (j *JobRepository) GetJobs(ctx context.Context, projectName tenant.ProjectName, jobs []string) ([]*scheduler.JobWithDetails, error)
- type JobRunRepository
- func (j *JobRunRepository) Create(ctx context.Context, t tenant.Tenant, jobName scheduler.JobName, ...) error
- func (j *JobRunRepository) GetByID(ctx context.Context, id scheduler.JobRunID) (*scheduler.JobRun, error)
- func (j *JobRunRepository) GetByScheduledAt(ctx context.Context, t tenant.Tenant, jobName scheduler.JobName, ...) (*scheduler.JobRun, error)
- func (j *JobRunRepository) Update(ctx context.Context, jobRunID uuid.UUID, endTime time.Time, ...) error
- func (j *JobRunRepository) UpdateMonitoring(ctx context.Context, jobRunID uuid.UUID, monitoringValues map[string]any) error
- func (j *JobRunRepository) UpdateSLA(ctx context.Context, slaObjects []*scheduler.SLAObject) error
- func (j *JobRunRepository) UpdateState(ctx context.Context, jobRunID uuid.UUID, status scheduler.State) error
- type JobUpstreams
- type Metadata
- type MetadataResource
- type MetadataResourceConfig
- type OperatorRunRepository
- func (o *OperatorRunRepository) CreateOperatorRun(ctx context.Context, name string, operatorType scheduler.OperatorType, ...) error
- func (o *OperatorRunRepository) GetOperatorRun(ctx context.Context, name string, operatorType scheduler.OperatorType, ...) (*scheduler.OperatorRun, error)
- func (o *OperatorRunRepository) UpdateOperatorRun(ctx context.Context, operatorType scheduler.OperatorType, ...) error
- type ReplayRepository
- func (r ReplayRepository) GetReplayByID(ctx context.Context, replayID uuid.UUID) (*scheduler.ReplayWithRun, error)
- func (r ReplayRepository) GetReplayJobConfig(ctx context.Context, jobTenant tenant.Tenant, jobName scheduler.JobName, ...) (map[string]string, error)
- func (r ReplayRepository) GetReplayRequestsByStatus(ctx context.Context, statusList []scheduler.ReplayState) ([]*scheduler.Replay, error)
- func (r ReplayRepository) GetReplayToExecute(ctx context.Context) (*scheduler.ReplayWithRun, error)
- func (r ReplayRepository) GetReplaysByProject(ctx context.Context, projectName tenant.ProjectName, dayLimits int) ([]*scheduler.Replay, error)
- func (r ReplayRepository) RegisterReplay(ctx context.Context, replay *scheduler.Replay, runs []*scheduler.JobRunStatus) (uuid.UUID, error)
- func (r ReplayRepository) UpdateReplay(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, ...) error
- func (r ReplayRepository) UpdateReplayStatus(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, ...) error
- type Retry
- type Schedule
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { ID uuid.UUID Name string Version int Owner string Description string Labels map[string]string Schedule json.RawMessage WindowSpec json.RawMessage Alert json.RawMessage StaticUpstreams pq.StringArray HTTPUpstreams json.RawMessage TaskName string TaskConfig map[string]string Hooks json.RawMessage Assets map[string]string Metadata json.RawMessage Destination string Sources pq.StringArray ProjectName string `json:"project_name"` NamespaceName string `json:"namespace_name"` CreatedAt time.Time UpdatedAt time.Time DeletedAt sql.NullTime }
type JobRepository ¶
type JobRepository struct {
// contains filtered or unexported fields
}
func NewJobProviderRepository ¶
func NewJobProviderRepository(pool *pgxpool.Pool) *JobRepository
func (*JobRepository) GetAll ¶
func (j *JobRepository) GetAll(ctx context.Context, projectName tenant.ProjectName) ([]*scheduler.JobWithDetails, error)
func (*JobRepository) GetJob ¶
func (j *JobRepository) GetJob(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.Job, error)
func (*JobRepository) GetJobDetails ¶
func (j *JobRepository) GetJobDetails(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.JobWithDetails, error)
func (*JobRepository) GetJobs ¶ added in v0.8.0
func (j *JobRepository) GetJobs(ctx context.Context, projectName tenant.ProjectName, jobs []string) ([]*scheduler.JobWithDetails, error)
type JobRunRepository ¶
type JobRunRepository struct {
// contains filtered or unexported fields
}
func NewJobRunRepository ¶
func NewJobRunRepository(pool *pgxpool.Pool) *JobRunRepository
func (*JobRunRepository) GetByScheduledAt ¶
func (*JobRunRepository) UpdateMonitoring ¶
func (*JobRunRepository) UpdateState ¶ added in v0.7.0
type JobUpstreams ¶
type JobUpstreams struct { JobID uuid.UUID JobName string ProjectName string UpstreamJobID uuid.UUID UpstreamJobName sql.NullString UpstreamResourceUrn sql.NullString UpstreamProjectName sql.NullString UpstreamNamespaceName sql.NullString UpstreamTaskName sql.NullString UpstreamHost sql.NullString UpstreamType string UpstreamState string UpstreamExternal sql.NullBool CreatedAt time.Time UpdatedAt time.Time }
type Metadata ¶ added in v0.8.3
type Metadata struct { Resource *MetadataResource Scheduler map[string]string }
type MetadataResource ¶ added in v0.8.3
type MetadataResource struct { Request *MetadataResourceConfig Limit *MetadataResourceConfig }
type MetadataResourceConfig ¶ added in v0.8.3
type OperatorRunRepository ¶
type OperatorRunRepository struct {
// contains filtered or unexported fields
}
func NewOperatorRunRepository ¶
func NewOperatorRunRepository(pool *pgxpool.Pool) *OperatorRunRepository
func (*OperatorRunRepository) CreateOperatorRun ¶
func (*OperatorRunRepository) GetOperatorRun ¶
func (o *OperatorRunRepository) GetOperatorRun(ctx context.Context, name string, operatorType scheduler.OperatorType, jobRunID uuid.UUID) (*scheduler.OperatorRun, error)
func (*OperatorRunRepository) UpdateOperatorRun ¶
type ReplayRepository ¶ added in v0.7.0
type ReplayRepository struct {
// contains filtered or unexported fields
}
func NewReplayRepository ¶ added in v0.7.0
func NewReplayRepository(db *pgxpool.Pool) *ReplayRepository
func (ReplayRepository) GetReplayByID ¶ added in v0.7.0
func (r ReplayRepository) GetReplayByID(ctx context.Context, replayID uuid.UUID) (*scheduler.ReplayWithRun, error)
func (ReplayRepository) GetReplayJobConfig ¶ added in v0.7.0
func (ReplayRepository) GetReplayRequestsByStatus ¶ added in v0.7.0
func (r ReplayRepository) GetReplayRequestsByStatus(ctx context.Context, statusList []scheduler.ReplayState) ([]*scheduler.Replay, error)
func (ReplayRepository) GetReplayToExecute ¶ added in v0.7.0
func (r ReplayRepository) GetReplayToExecute(ctx context.Context) (*scheduler.ReplayWithRun, error)
func (ReplayRepository) GetReplaysByProject ¶ added in v0.7.0
func (r ReplayRepository) GetReplaysByProject(ctx context.Context, projectName tenant.ProjectName, dayLimits int) ([]*scheduler.Replay, error)
func (ReplayRepository) RegisterReplay ¶ added in v0.7.0
func (r ReplayRepository) RegisterReplay(ctx context.Context, replay *scheduler.Replay, runs []*scheduler.JobRunStatus) (uuid.UUID, error)
func (ReplayRepository) UpdateReplay ¶ added in v0.7.0
func (r ReplayRepository) UpdateReplay(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, runs []*scheduler.JobRunStatus, message string) error
func (ReplayRepository) UpdateReplayStatus ¶ added in v0.7.0
func (r ReplayRepository) UpdateReplayStatus(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, message string) error
Click to show internal directories.
Click to hide internal directories.