models

package
v0.3.84-rc-abaf1a5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
const (

	// OrderDirectionASC captures enum value "ASC"
	OrderDirectionASC string = "ASC"

	// OrderDirectionDESC captures enum value "DESC"
	OrderDirectionDESC string = "DESC"
)
View Source
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

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (m *Filter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this filter based on context it is used

func (*Filter) MarshalBinary

func (m *Filter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Filter) UnmarshalBinary

func (m *Filter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Filter) Validate

func (m *Filter) Validate(formats strfmt.Registry) error

Validate validates this filter

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

func (m *Group) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this group based on context it is used

func (*Group) MarshalBinary

func (m *Group) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Group) UnmarshalBinary

func (m *Group) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Group) Validate

func (m *Group) Validate(formats strfmt.Registry) error

Validate validates this group

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"`

	// 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

func (m *Job) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this job based on the context it is used

func (*Job) MarshalBinary

func (m *Job) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Job) UnmarshalBinary

func (m *Job) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Job) Validate

func (m *Job) Validate(formats strfmt.Registry) error

Validate validates this job

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

func (m *Order) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this order based on context it is used

func (*Order) MarshalBinary

func (m *Order) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Order) UnmarshalBinary

func (m *Order) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Order) Validate

func (m *Order) Validate(formats strfmt.Registry) error

Validate validates this order

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"`

	// node
	Node *string `json:"node,omitempty"`

	// pending
	// Required: true
	// Min Length: 1
	// Format: date-time
	Pending strfmt.DateTime `json:"pending"`

	// 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

func (m *Run) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this run based on context it is used

func (*Run) MarshalBinary

func (m *Run) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Run) UnmarshalBinary

func (m *Run) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Run) Validate

func (m *Run) Validate(formats strfmt.Registry) error

Validate validates this run

Jump to

Keyboard shortcuts

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