Documentation
¶
Index ¶
- type Alert
- type Asset
- type Change
- type ChangeLog
- 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) GetAll(ctx context.Context) ([]*job.Job, error)
- func (j JobRepository) GetAllByProjectName(ctx context.Context, projectName tenant.ProjectName) ([]*job.Job, error)
- func (j JobRepository) GetAllByResourceDestination(ctx context.Context, resourceDestination resource.URN) ([]*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) GetChangelog(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) ([]*job.ChangeLog, error)
- func (j JobRepository) GetDownstreamByDestination(ctx context.Context, projectName tenant.ProjectName, destination resource.URN) ([]*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 []resource.URN) ([]*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) SetDirty(ctx context.Context, jobsTenant tenant.Tenant, jobNames []job.Name, ...) 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 JobWithThirdPartyUpstream
- type JobWithUpstream
- type Metadata
- type MetadataResource
- type MetadataResourceConfig
- type OperatorAlertConfig
- type ProjectAndJobNames
- type Retry
- type SLAAlertConfig
- type Schedule
- type Spec
- type TaskConfig
- type Webhook
- type WebhookEndpoint
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeLog ¶ added in v0.13.0
func FromChangelogRow ¶ added in v0.13.0
type Downstream ¶
type Hook ¶
type Hook struct {
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Config map[string]string `json:"config,omitempty"`
AlertConfig *OperatorAlertConfig `json:"alert_config,omitempty"`
}
type JobRepository ¶
type JobRepository struct {
// contains filtered or unexported fields
}
func NewJobRepository ¶
func NewJobRepository(pool *pgxpool.Pool) *JobRepository
func (JobRepository) ChangeJobNamespace ¶ added in v0.8.0
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 (JobRepository) GetAllByTenant ¶
func (JobRepository) GetByJobName ¶
func (j JobRepository) GetByJobName(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) (*job.Job, error)
func (JobRepository) GetChangelog ¶ added in v0.13.0
func (j JobRepository) GetChangelog(ctx context.Context, projectName tenant.ProjectName, jobName job.Name) ([]*job.ChangeLog, error)
func (JobRepository) GetDownstreamByDestination ¶
func (j JobRepository) GetDownstreamByDestination(ctx context.Context, projectName tenant.ProjectName, destination resource.URN) ([]*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 ¶ added in v0.9.0
func (j JobRepository) GetDownstreamBySources(ctx context.Context, sources []resource.URN) ([]*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 JobWithThirdPartyUpstream ¶ added in v0.22.14
type JobWithThirdPartyUpstream struct {
JobName string `json:"job_name"`
ProjectName string `json:"project_name"`
UpstreamThirdPartyType string `json:"upstream_third_party_type"`
UpstreamThirdPartyIdentifier string `json:"upstream_third_party_identifier"`
UpstreamThirdPartyConfig map[string]string `json:"upstream_third_party_config"`
}
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 OperatorAlertConfig ¶ added in v0.22.0
type OperatorAlertConfig struct {
SLAAlertConfigs []*SLAAlertConfig `json:"sla_alert_configs,omitempty"`
Team string `json:"team,omitempty"`
}
type ProjectAndJobNames ¶
type SLAAlertConfig ¶ added in v0.22.0
type Spec ¶
type Spec struct {
ID uuid.UUID
Name string
Version int
Owner string
Description string
Labels map[string]string
State string
Schedule json.RawMessage
WindowSpec json.RawMessage
Alert json.RawMessage
Webhook json.RawMessage
StaticUpstreams pq.StringArray
HTTPUpstreams json.RawMessage
TaskName string
TaskConfig json.RawMessage
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
IsDirty bool
}
type TaskConfig ¶ added in v0.21.0
type TaskConfig struct {
Version string `json:"version,omitempty"`
Config map[string]string `json:"config,omitempty"`
AlertConfig *OperatorAlertConfig `json:"alert_config,omitempty"`
}
type Webhook ¶ added in v0.11.4
type Webhook struct {
On string
Endpoints []WebhookEndpoint
}
type WebhookEndpoint ¶ added in v0.11.4
Click to show internal directories.
Click to hide internal directories.