Documentation ¶
Index ¶
Constants ¶
const ( // FilterMatchExact captures enum value "exact" FilterMatchExact string = "exact" // FilterMatchAnyOf captures enum value "anyOf" FilterMatchAnyOf string = "anyOf" // FilterMatchStartsWith captures enum value "startsWith" FilterMatchStartsWith string = "startsWith" // FilterMatchContains captures enum value "contains" FilterMatchContains string = "contains" // FilterMatchGreaterThan captures enum value "greaterThan" FilterMatchGreaterThan string = "greaterThan" // FilterMatchLessThan captures enum value "lessThan" FilterMatchLessThan string = "lessThan" // FilterMatchGreaterThanOrEqualTo captures enum value "greaterThanOrEqualTo" FilterMatchGreaterThanOrEqualTo string = "greaterThanOrEqualTo" // FilterMatchLessThanOrEqualTo captures enum value "lessThanOrEqualTo" FilterMatchLessThanOrEqualTo string = "lessThanOrEqualTo" // FilterMatchExists captures enum value "exists" FilterMatchExists string = "exists" )
const ( // JobStateQUEUED captures enum value "QUEUED" JobStateQUEUED string = "QUEUED" // JobStatePENDING captures enum value "PENDING" JobStatePENDING string = "PENDING" // JobStateRUNNING captures enum value "RUNNING" JobStateRUNNING string = "RUNNING" // JobStateSUCCEEDED captures enum value "SUCCEEDED" JobStateSUCCEEDED string = "SUCCEEDED" // JobStateFAILED captures enum value "FAILED" JobStateFAILED string = "FAILED" // JobStateCANCELLED captures enum value "CANCELLED" JobStateCANCELLED string = "CANCELLED" // JobStatePREEMPTED captures enum value "PREEMPTED" JobStatePREEMPTED string = "PREEMPTED" // JobStateLEASED captures enum value "LEASED" JobStateLEASED string = "LEASED" )
const ( // OrderDirectionASC captures enum value "ASC" OrderDirectionASC string = "ASC" // OrderDirectionDESC captures enum value "DESC" OrderDirectionDESC string = "DESC" )
const ( // RunJobRunStateRUNPENDING captures enum value "RUN_PENDING" RunJobRunStateRUNPENDING string = "RUN_PENDING" // RunJobRunStateRUNRUNNING captures enum value "RUN_RUNNING" RunJobRunStateRUNRUNNING string = "RUN_RUNNING" // RunJobRunStateRUNSUCCEEDED captures enum value "RUN_SUCCEEDED" RunJobRunStateRUNSUCCEEDED string = "RUN_SUCCEEDED" // RunJobRunStateRUNFAILED captures enum value "RUN_FAILED" RunJobRunStateRUNFAILED string = "RUN_FAILED" // RunJobRunStateRUNTERMINATED captures enum value "RUN_TERMINATED" RunJobRunStateRUNTERMINATED string = "RUN_TERMINATED" // RunJobRunStateRUNPREEMPTED captures enum value "RUN_PREEMPTED" RunJobRunStateRUNPREEMPTED string = "RUN_PREEMPTED" // RunJobRunStateRUNUNABLETOSCHEDULE captures enum value "RUN_UNABLE_TO_SCHEDULE" RunJobRunStateRUNUNABLETOSCHEDULE string = "RUN_UNABLE_TO_SCHEDULE" // RunJobRunStateRUNLEASERETURNED captures enum value "RUN_LEASE_RETURNED" RunJobRunStateRUNLEASERETURNED string = "RUN_LEASE_RETURNED" // RunJobRunStateRUNLEASEEXPIRED captures enum value "RUN_LEASE_EXPIRED" RunJobRunStateRUNLEASEEXPIRED string = "RUN_LEASE_EXPIRED" // RunJobRunStateRUNMAXRUNSEXCEEDED captures enum value "RUN_MAX_RUNS_EXCEEDED" RunJobRunStateRUNMAXRUNSEXCEEDED string = "RUN_MAX_RUNS_EXCEEDED" // RunJobRunStateRUNLEASED captures enum value "RUN_LEASED" RunJobRunStateRUNLEASED string = "RUN_LEASED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // error // Required: true // Min Length: 1 Error string `json:"error"` }
Error error
swagger:model error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Filter ¶
type Filter struct { // field // Required: true // Min Length: 1 Field string `json:"field"` // is annotation IsAnnotation bool `json:"isAnnotation,omitempty"` // match // Required: true // Enum: [exact anyOf startsWith contains greaterThan lessThan greaterThanOrEqualTo lessThanOrEqualTo exists] Match string `json:"match"` // value // Required: true Value interface{} `json:"value"` }
Filter filter
swagger:model filter
func (*Filter) ContextValidate ¶
ContextValidate validates this filter based on context it is used
func (*Filter) MarshalBinary ¶
MarshalBinary interface implementation
func (*Filter) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Group ¶
type Group struct { // aggregates // Required: true Aggregates map[string]interface{} `json:"aggregates"` // count // Required: true Count int64 `json:"count"` // name // Required: true // Min Length: 1 Name string `json:"name"` }
Group group
swagger:model group
func (*Group) ContextValidate ¶
ContextValidate validates this group based on context it is used
func (*Group) MarshalBinary ¶
MarshalBinary interface implementation
func (*Group) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Job ¶
type Job struct { // annotations // Required: true Annotations map[string]string `json:"annotations"` // cancel reason CancelReason *string `json:"cancelReason,omitempty"` // cancelled // Format: date-time Cancelled *strfmt.DateTime `json:"cancelled,omitempty"` // cpu // Required: true CPU int64 `json:"cpu"` // duplicate // Required: true Duplicate bool `json:"duplicate"` // ephemeral storage // Required: true EphemeralStorage int64 `json:"ephemeralStorage"` // gpu // Required: true Gpu int64 `json:"gpu"` // job Id // Required: true // Min Length: 1 JobID string `json:"jobId"` // job set // Required: true // Min Length: 1 JobSet string `json:"jobSet"` // last active run Id LastActiveRunID *string `json:"lastActiveRunId,omitempty"` // last transition time // Required: true // Min Length: 1 // Format: date-time LastTransitionTime strfmt.DateTime `json:"lastTransitionTime"` // memory // Required: true Memory int64 `json:"memory"` // namespace Namespace *string `json:"namespace,omitempty"` // owner // Required: true // Min Length: 1 Owner string `json:"owner"` // priority // Required: true Priority int64 `json:"priority"` // priority class PriorityClass *string `json:"priorityClass,omitempty"` // queue // Required: true // Min Length: 1 Queue string `json:"queue"` // runs // Required: true Runs []*Run `json:"runs"` // state // Required: true // Enum: [QUEUED PENDING RUNNING SUCCEEDED FAILED CANCELLED PREEMPTED LEASED] State string `json:"state"` // submitted // Required: true // Min Length: 1 // Format: date-time Submitted strfmt.DateTime `json:"submitted"` }
Job job
swagger:model job
func (*Job) ContextValidate ¶
ContextValidate validate this job based on the context it is used
func (*Job) MarshalBinary ¶
MarshalBinary interface implementation
func (*Job) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Order ¶
type Order struct { // direction // Required: true // Enum: [ASC DESC] Direction string `json:"direction"` // field // Required: true // Min Length: 1 Field string `json:"field"` }
Order order
swagger:model order
func (*Order) ContextValidate ¶
ContextValidate validates this order based on context it is used
func (*Order) MarshalBinary ¶
MarshalBinary interface implementation
func (*Order) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Run ¶
type Run struct { // cluster // Required: true // Min Length: 1 Cluster string `json:"cluster"` // exit code ExitCode *int32 `json:"exitCode,omitempty"` // finished // Format: date-time Finished *strfmt.DateTime `json:"finished,omitempty"` // job run state // Required: true // Enum: [RUN_PENDING RUN_RUNNING RUN_SUCCEEDED RUN_FAILED RUN_TERMINATED RUN_PREEMPTED RUN_UNABLE_TO_SCHEDULE RUN_LEASE_RETURNED RUN_LEASE_EXPIRED RUN_MAX_RUNS_EXCEEDED RUN_LEASED] JobRunState string `json:"jobRunState"` // leased // Min Length: 1 // Format: date-time Leased *strfmt.DateTime `json:"leased,omitempty"` // node Node *string `json:"node,omitempty"` // pending // Min Length: 1 // Format: date-time Pending *strfmt.DateTime `json:"pending,omitempty"` // run Id // Required: true // Min Length: 1 RunID string `json:"runId"` // started // Format: date-time Started *strfmt.DateTime `json:"started,omitempty"` }
Run run
swagger:model run
func (*Run) ContextValidate ¶
ContextValidate validates this run based on context it is used
func (*Run) MarshalBinary ¶
MarshalBinary interface implementation
func (*Run) UnmarshalBinary ¶
UnmarshalBinary interface implementation