v1beta1

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) JobRun

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 (JobRunHandler) RegisterJobEvent

RegisterJobEvent TODO: check in jaeger if this api takes time, then we can make this async

func (JobRunHandler) UploadToScheduler

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
}

type Notifier

type Notifier interface {
	Push(ctx context.Context, event *scheduler.Event) error
}

type ReplayHandler

type ReplayHandler struct {
	pb.UnimplementedReplayServiceServer
	// contains filtered or unexported fields
}

func NewReplayHandler

func NewReplayHandler(l log.Logger, service ReplayService) *ReplayHandler

func (ReplayHandler) GetReplay

func (ReplayHandler) ListReplay

func (ReplayHandler) Replay

type ReplayService

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL