Documentation ¶
Index ¶
- type JobRunHandler
- func (h JobRunHandler) GetInterval(ctx context.Context, req *pb.GetIntervalRequest) (*pb.GetIntervalResponse, error)
- func (h JobRunHandler) JobRun(ctx context.Context, req *pb.JobRunRequest) (*pb.JobRunResponse, error)
- func (h JobRunHandler) JobRunInput(ctx context.Context, req *pb.JobRunInputRequest) (*pb.JobRunInputResponse, error)
- func (h JobRunHandler) RegisterJobEvent(ctx context.Context, req *pb.RegisterJobEventRequest) (*pb.RegisterJobEventResponse, error)
- func (h JobRunHandler) UploadToScheduler(_ context.Context, req *pb.UploadToSchedulerRequest) (*pb.UploadToSchedulerResponse, error)
- type JobRunService
- type Notifier
- type ReplayHandler
- func (h ReplayHandler) CancelReplay(ctx context.Context, req *pb.CancelReplayRequest) (*pb.CancelReplayResponse, error)
- func (h ReplayHandler) GetReplay(ctx context.Context, req *pb.GetReplayRequest) (*pb.GetReplayResponse, error)
- func (h ReplayHandler) ListReplay(ctx context.Context, req *pb.ListReplayRequest) (*pb.ListReplayResponse, error)
- func (h ReplayHandler) Replay(ctx context.Context, req *pb.ReplayRequest) (*pb.ReplayResponse, error)
- func (h ReplayHandler) ReplayDryRun(ctx context.Context, req *pb.ReplayDryRunRequest) (*pb.ReplayDryRunResponse, error)
- type ReplayService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobRunHandler ¶
type JobRunHandler struct { pb.UnimplementedJobRunServiceServer // contains filtered or unexported fields }
func NewJobRunHandler ¶
func NewJobRunHandler(l log.Logger, service JobRunService, notifier Notifier) *JobRunHandler
func (JobRunHandler) GetInterval ¶ added in v0.10.0
func (h JobRunHandler) GetInterval(ctx context.Context, req *pb.GetIntervalRequest) (*pb.GetIntervalResponse, error)
GetInterval gets interval on specific job given reference time.
func (JobRunHandler) JobRun ¶
func (h JobRunHandler) JobRun(ctx context.Context, req *pb.JobRunRequest) (*pb.JobRunResponse, error)
JobRun currently gets the job runs from scheduler based on the criteria TODO: later should collect the job runs from optimus
func (JobRunHandler) JobRunInput ¶
func (h JobRunHandler) JobRunInput(ctx context.Context, req *pb.JobRunInputRequest) (*pb.JobRunInputResponse, error)
func (JobRunHandler) RegisterJobEvent ¶
func (h JobRunHandler) RegisterJobEvent(ctx context.Context, req *pb.RegisterJobEventRequest) (*pb.RegisterJobEventResponse, error)
RegisterJobEvent TODO: check in jaeger if this api takes time, then we can make this async
func (JobRunHandler) UploadToScheduler ¶
func (h JobRunHandler) UploadToScheduler(_ context.Context, req *pb.UploadToSchedulerRequest) (*pb.UploadToSchedulerResponse, error)
type JobRunService ¶
type JobRunService interface { JobRunInput(context.Context, tenant.ProjectName, scheduler.JobName, scheduler.RunConfig) (*scheduler.ExecutorInput, error) UpdateJobState(context.Context, *scheduler.Event) error GetJobRuns(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName, criteria *scheduler.JobRunsCriteria) ([]*scheduler.JobRunStatus, error) UploadToScheduler(ctx context.Context, projectName tenant.ProjectName) error GetInterval(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName, referenceTime time.Time) (interval.Interval, error) }
type ReplayHandler ¶ added in v0.7.0
type ReplayHandler struct { pb.UnimplementedReplayServiceServer // contains filtered or unexported fields }
func NewReplayHandler ¶ added in v0.7.0
func NewReplayHandler(l log.Logger, service ReplayService) *ReplayHandler
func (ReplayHandler) CancelReplay ¶ added in v0.11.3
func (h ReplayHandler) CancelReplay(ctx context.Context, req *pb.CancelReplayRequest) (*pb.CancelReplayResponse, error)
func (ReplayHandler) GetReplay ¶ added in v0.7.0
func (h ReplayHandler) GetReplay(ctx context.Context, req *pb.GetReplayRequest) (*pb.GetReplayResponse, error)
func (ReplayHandler) ListReplay ¶ added in v0.7.0
func (h ReplayHandler) ListReplay(ctx context.Context, req *pb.ListReplayRequest) (*pb.ListReplayResponse, error)
func (ReplayHandler) Replay ¶ added in v0.7.0
func (h ReplayHandler) Replay(ctx context.Context, req *pb.ReplayRequest) (*pb.ReplayResponse, error)
func (ReplayHandler) ReplayDryRun ¶ added in v0.9.0
func (h ReplayHandler) ReplayDryRun(ctx context.Context, req *pb.ReplayDryRunRequest) (*pb.ReplayDryRunResponse, error)
type ReplayService ¶ added in v0.7.0
type ReplayService interface { CreateReplay(ctx context.Context, tenant tenant.Tenant, jobName scheduler.JobName, config *scheduler.ReplayConfig) (replayID uuid.UUID, err error) GetReplayList(ctx context.Context, projectName tenant.ProjectName) (replays []*scheduler.Replay, err error) GetReplayByID(ctx context.Context, replayID uuid.UUID) (replay *scheduler.ReplayWithRun, err error) GetRunsStatus(ctx context.Context, tenant tenant.Tenant, jobName scheduler.JobName, config *scheduler.ReplayConfig) (runs []*scheduler.JobRunStatus, err error) CancelReplay(ctx context.Context, replayWithRun *scheduler.ReplayWithRun) error }
Click to show internal directories.
Click to hide internal directories.