Documentation ¶
Index ¶
- type Alert
- type Asset
- type Config
- type Downstream
- type Hook
- type JobRepository
- func (j JobRepository) Add(ctx context.Context, jobs []*job.Job) ([]*job.Job, error)
- func (j JobRepository) ChangeJobNamespace(ctx context.Context, jobName job.Name, tenant, newTenant tenant.Tenant) error
- func (j JobRepository) Delete(ctx context.Context, projectName tenant.ProjectName, jobName job.Name, ...) error
- func (j JobRepository) GetAllByProjectName(ctx context.Context, projectName tenant.ProjectName) ([]*job.Job, error)
- func (j JobRepository) GetAllByResourceDestination(ctx context.Context, resourceDestination job.ResourceURN) ([]*job.Job, error)
- func (j JobRepository) GetAllByTenant(ctx context.Context, jobTenant tenant.Tenant) ([]*job.Job, error)
- func (j JobRepository) GetByJobName(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) (*job.Job, error)
- func (j JobRepository) GetDownstreamByDestination(ctx context.Context, projectName tenant.ProjectName, ...) ([]*job.Downstream, error)
- func (j JobRepository) GetDownstreamByJobName(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) ([]*job.Downstream, error)
- func (j JobRepository) GetDownstreamBySources(ctx context.Context, sources []job.ResourceURN) ([]*job.Downstream, error)
- func (j JobRepository) GetUpstreams(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) ([]*job.Upstream, error)
- func (j JobRepository) ReplaceUpstreams(ctx context.Context, jobsWithUpstreams []*job.WithUpstream) error
- func (j JobRepository) ResolveUpstreams(ctx context.Context, projectName tenant.ProjectName, jobNames []job.Name) (map[job.Name][]*job.Upstream, error)
- func (j JobRepository) SyncState(ctx context.Context, jobTenant tenant.Tenant, ...) error
- func (j JobRepository) Update(ctx context.Context, jobs []*job.Job) ([]*job.Job, error)
- func (j JobRepository) UpdateState(ctx context.Context, jobTenant tenant.Tenant, jobNames []job.Name, ...) error
- type JobWithUpstream
- type Metadata
- type MetadataResource
- type MetadataResourceConfig
- type ProjectAndJobNames
- type Retry
- type Schedule
- type Spec
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downstream ¶
type JobRepository ¶
type JobRepository struct {
// contains filtered or unexported fields
}
func NewJobRepository ¶
func NewJobRepository(pool *pgxpool.Pool) *JobRepository
func (JobRepository) ChangeJobNamespace ¶
func (JobRepository) Delete ¶
func (j JobRepository) Delete(ctx context.Context, projectName tenant.ProjectName, jobName job.Name, cleanHistory bool) error
func (JobRepository) GetAllByProjectName ¶
func (j JobRepository) GetAllByProjectName(ctx context.Context, projectName tenant.ProjectName) ([]*job.Job, error)
func (JobRepository) GetAllByResourceDestination ¶
func (j JobRepository) GetAllByResourceDestination(ctx context.Context, resourceDestination job.ResourceURN) ([]*job.Job, error)
func (JobRepository) GetAllByTenant ¶
func (JobRepository) GetByJobName ¶
func (j JobRepository) GetByJobName(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) (*job.Job, error)
func (JobRepository) GetDownstreamByDestination ¶
func (j JobRepository) GetDownstreamByDestination(ctx context.Context, projectName tenant.ProjectName, destination job.ResourceURN) ([]*job.Downstream, error)
func (JobRepository) GetDownstreamByJobName ¶
func (j JobRepository) GetDownstreamByJobName(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) ([]*job.Downstream, error)
func (JobRepository) GetDownstreamBySources ¶
func (j JobRepository) GetDownstreamBySources(ctx context.Context, sources []job.ResourceURN) ([]*job.Downstream, error)
func (JobRepository) GetUpstreams ¶
func (j JobRepository) GetUpstreams(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) ([]*job.Upstream, error)
func (JobRepository) ReplaceUpstreams ¶
func (j JobRepository) ReplaceUpstreams(ctx context.Context, jobsWithUpstreams []*job.WithUpstream) error
func (JobRepository) ResolveUpstreams ¶
type JobWithUpstream ¶
type JobWithUpstream struct { JobName string `json:"job_name"` ProjectName string `json:"project_name"` UpstreamJobName sql.NullString `json:"upstream_job_name"` UpstreamResourceURN sql.NullString `json:"upstream_resource_urn"` UpstreamProjectName sql.NullString `json:"upstream_project_name"` UpstreamNamespaceName sql.NullString `json:"upstream_namespace_name"` UpstreamTaskName sql.NullString `json:"upstream_task_name"` UpstreamHost sql.NullString `json:"upstream_host"` UpstreamType string `json:"upstream_type"` UpstreamState string `json:"upstream_state"` UpstreamExternal sql.NullBool `json:"upstream_external"` }
func UpstreamFromRow ¶
func UpstreamFromRow(row pgx.Row) (*JobWithUpstream, error)
type Metadata ¶
type Metadata struct { Resource *MetadataResource Scheduler map[string]string }
type MetadataResource ¶
type MetadataResource struct { Request *MetadataResourceConfig Limit *MetadataResourceConfig }
type MetadataResourceConfig ¶
type ProjectAndJobNames ¶
type Spec ¶
type Spec 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 }
Click to show internal directories.
Click to hide internal directories.