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)
- 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
- type JobUpstreams
- 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 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)
type JobRunRepository ¶
type JobRunRepository struct {
// contains filtered or unexported fields
}
func NewJobRunRepository ¶
func NewJobRunRepository(pool *pgxpool.Pool) *JobRunRepository
func (*JobRunRepository) GetByScheduledAt ¶
func (*JobRunRepository) UpdateMonitoring ¶
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 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 ¶
Click to show internal directories.
Click to hide internal directories.