Documentation ¶
Index ¶
- Variables
- func DbTimeToTimestamp(t pgtype.Timestamp) *types.Timestamp
- func NilStringToString(s *string) string
- type QueryApi
- func (q *QueryApi) GetJobDetails(ctx context.Context, req *api.JobDetailsRequest) (*api.JobDetailsResponse, error)
- func (q *QueryApi) GetJobRunDetails(ctx context.Context, req *api.JobRunDetailsRequest) (*api.JobRunDetailsResponse, error)
- func (q *QueryApi) GetJobStatus(ctx context.Context, req *api.JobStatusRequest) (*api.JobStatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var JobRunStateMap = map[int16]api.JobRunState{ lookout.JobRunLeasedOrdinal: api.JobRunState_RUN_STATE_LEASED, lookout.JobRunPendingOrdinal: api.JobRunState_RUN_STATE_PENDING, lookout.JobRunRunningOrdinal: api.JobRunState_RUN_STATE_RUNNING, lookout.JobRunSucceededOrdinal: api.JobRunState_RUN_STATE_SUCCEEDED, lookout.JobRunFailedOrdinal: api.JobRunState_RUN_STATE_FAILED, lookout.JobRunPreemptedOrdinal: api.JobRunState_RUN_STATE_PREEMPTED, lookout.JobRunLeaseExpiredOrdinal: api.JobRunState_RUN_STATE_LEASE_EXPIRED, lookout.JobRunLeaseReturnedOrdinal: api.JobRunState_RUNS_STATE_LEASE_RETURNED, }
JobRunStateMap is a mapping between database state and api Job Run states
View Source
var JobStateMap = map[int16]api.JobState{ lookout.JobLeasedOrdinal: api.JobState_LEASED, lookout.JobQueuedOrdinal: api.JobState_QUEUED, lookout.JobPendingOrdinal: api.JobState_PENDING, lookout.JobRunningOrdinal: api.JobState_RUNNING, lookout.JobSucceededOrdinal: api.JobState_SUCCEEDED, lookout.JobFailedOrdinal: api.JobState_FAILED, lookout.JobCancelledOrdinal: api.JobState_CANCELLED, lookout.JobPreemptedOrdinal: api.JobState_PREEMPTED, lookout.JobRejectedOrdinal: api.JobState_REJECTED, }
JobStateMap is a mapping between database state and api Job states
Functions ¶
func NilStringToString ¶
Types ¶
type QueryApi ¶
type QueryApi struct {
// contains filtered or unexported fields
}
func (*QueryApi) GetJobDetails ¶
func (q *QueryApi) GetJobDetails(ctx context.Context, req *api.JobDetailsRequest) (*api.JobDetailsResponse, error)
func (*QueryApi) GetJobRunDetails ¶
func (q *QueryApi) GetJobRunDetails(ctx context.Context, req *api.JobRunDetailsRequest) (*api.JobRunDetailsResponse, error)
func (*QueryApi) GetJobStatus ¶
func (q *QueryApi) GetJobStatus(ctx context.Context, req *api.JobStatusRequest) (*api.JobStatusResponse, error)
Click to show internal directories.
Click to hide internal directories.