Documentation ¶
Index ¶
- Constants
- Variables
- type Bucket
- type BucketFactory
- type Client
- type ClientAirflow
- type DagCompiler
- type DagRun
- type DagRunListResponse
- type DagRunRequest
- type ProjectGetter
- type Scheduler
- func (s *Scheduler) Clear(ctx context.Context, t tenant.Tenant, jobName scheduler.JobName, ...) error
- func (s *Scheduler) ClearBatch(ctx context.Context, tnnt tenant.Tenant, jobName scheduler.JobName, ...) error
- func (s *Scheduler) CreateRun(ctx context.Context, tnnt tenant.Tenant, jobName scheduler.JobName, ...) error
- func (s *Scheduler) DeleteJobs(ctx context.Context, t tenant.Tenant, jobNames []string) error
- func (s *Scheduler) DeployJobs(ctx context.Context, tenant tenant.Tenant, jobs []*scheduler.JobWithDetails) error
- func (s *Scheduler) GetJobRuns(ctx context.Context, tnnt tenant.Tenant, jobQuery *scheduler.JobRunsCriteria, ...) ([]*scheduler.JobRunStatus, error)
- func (s *Scheduler) ListJobs(ctx context.Context, t tenant.Tenant) ([]string, error)
- func (s *Scheduler) UpdateJobState(ctx context.Context, tnnt tenant.Tenant, jobNames []job.Name, state string) error
- type SchedulerAuth
- type SecretGetter
Constants ¶
View Source
const (
EntityAirflow = "Airflow"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BucketFactory ¶
type Client ¶
type Client interface {
Invoke(ctx context.Context, r airflowRequest, auth SchedulerAuth) ([]byte, error)
}
type ClientAirflow ¶
type ClientAirflow struct {
// contains filtered or unexported fields
}
func NewAirflowClient ¶
func NewAirflowClient() *ClientAirflow
func (ClientAirflow) Invoke ¶
func (ac ClientAirflow) Invoke(ctx context.Context, r airflowRequest, auth SchedulerAuth) ([]byte, error)
type DagCompiler ¶
type DagCompiler interface {
Compile(job *scheduler.JobWithDetails) ([]byte, error)
}
type DagRunListResponse ¶
type DagRunRequest ¶
type ProjectGetter ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(l log.Logger, bucketFac BucketFactory, client Client, compiler DagCompiler, projectGetter ProjectGetter, secretGetter SecretGetter) *Scheduler
func (*Scheduler) ClearBatch ¶
func (*Scheduler) DeleteJobs ¶
func (*Scheduler) DeployJobs ¶
func (*Scheduler) GetJobRuns ¶
func (s *Scheduler) GetJobRuns(ctx context.Context, tnnt tenant.Tenant, jobQuery *scheduler.JobRunsCriteria, jobCron *cron.ScheduleSpec) ([]*scheduler.JobRunStatus, error)
type SchedulerAuth ¶
type SchedulerAuth struct {
// contains filtered or unexported fields
}
type SecretGetter ¶
type SecretGetter interface {
Get(ctx context.Context, projName tenant.ProjectName, namespaceName, name string) (*tenant.PlainTextSecret, error)
}
Click to show internal directories.
Click to hide internal directories.