Documentation ¶
Index ¶
- Constants
- type BatchEvent
- type BatchScheduleDescription
- func (m *BatchScheduleDescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *BatchScheduleDescription) MarshalBinary() ([]byte, error)
- func (m *BatchScheduleDescription) UnmarshalBinary(b []byte) error
- func (m *BatchScheduleDescription) Validate(formats strfmt.Registry) error
- type BatchStatus
- type Event
- type JobScheduleDescription
- func (m *JobScheduleDescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *JobScheduleDescription) MarshalBinary() ([]byte, error)
- func (m *JobScheduleDescription) UnmarshalBinary(b []byte) error
- func (m *JobScheduleDescription) Validate(formats strfmt.Registry) error
- type JobStatus
- type RadixJobComponentConfig
- func (m *RadixJobComponentConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RadixJobComponentConfig) MarshalBinary() ([]byte, error)
- func (m *RadixJobComponentConfig) UnmarshalBinary(b []byte) error
- func (m *RadixJobComponentConfig) Validate(formats strfmt.Registry) error
- type RadixNode
- type ResourceList
- type ResourceRequirements
- type Status
- type StatusReason
Constants ¶
const ( // BatchEventStatusWaiting captures enum value "Waiting" BatchEventStatusWaiting string = "Waiting" // BatchEventStatusRunning captures enum value "Running" BatchEventStatusRunning string = "Running" // BatchEventStatusSucceeded captures enum value "Succeeded" BatchEventStatusSucceeded string = "Succeeded" // BatchEventStatusStopping captures enum value "Stopping" BatchEventStatusStopping string = "Stopping" // BatchEventStatusStopped captures enum value "Stopped" BatchEventStatusStopped string = "Stopped" // BatchEventStatusFailed captures enum value "Failed" BatchEventStatusFailed string = "Failed" // BatchEventStatusDeadlineExceeded captures enum value "DeadlineExceeded" BatchEventStatusDeadlineExceeded string = "DeadlineExceeded" )
const ( // BatchStatusStatusWaiting captures enum value "Waiting" BatchStatusStatusWaiting string = "Waiting" // BatchStatusStatusRunning captures enum value "Running" BatchStatusStatusRunning string = "Running" // BatchStatusStatusSucceeded captures enum value "Succeeded" BatchStatusStatusSucceeded string = "Succeeded" // BatchStatusStatusStopping captures enum value "Stopping" BatchStatusStatusStopping string = "Stopping" // BatchStatusStatusStopped captures enum value "Stopped" BatchStatusStatusStopped string = "Stopped" // BatchStatusStatusFailed captures enum value "Failed" BatchStatusStatusFailed string = "Failed" // BatchStatusStatusDeadlineExceeded captures enum value "DeadlineExceeded" BatchStatusStatusDeadlineExceeded string = "DeadlineExceeded" )
const ( // JobStatusStatusWaiting captures enum value "Waiting" JobStatusStatusWaiting string = "Waiting" // JobStatusStatusRunning captures enum value "Running" JobStatusStatusRunning string = "Running" // JobStatusStatusSucceeded captures enum value "Succeeded" JobStatusStatusSucceeded string = "Succeeded" // JobStatusStatusStopping captures enum value "Stopping" JobStatusStatusStopping string = "Stopping" // JobStatusStatusStopped captures enum value "Stopped" JobStatusStatusStopped string = "Stopped" // JobStatusStatusFailed captures enum value "Failed" JobStatusStatusFailed string = "Failed" // JobStatusStatusDeadlineExceeded captures enum value "DeadlineExceeded" JobStatusStatusDeadlineExceeded string = "DeadlineExceeded" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchEvent ¶
type BatchEvent struct { // BatchName Optional Batch ID of a job // Example: 'batch1' BatchName string `json:"batchName,omitempty"` // BatchType Single job or multiple jobs batch // Example: \"job\ BatchType string `json:"batchType,omitempty"` // Created timestamp // Example: 2006-01-02T15:04:05Z // Required: true Created *string `json:"created"` // Ended timestamp // Example: 2006-01-02T15:04:05Z Ended string `json:"ended,omitempty"` // JobId Optional ID of a job // Example: 'job1' JobID string `json:"jobId,omitempty"` // JobStatuses of the jobs in the batch JobStatuses []*JobStatus `json:"jobStatuses"` // Message, if any, of the job // Example: \"Error occurred\ Message string `json:"message,omitempty"` // Name of the job // Example: calculator // Required: true Name *string `json:"name"` // Started timestamp // Example: 2006-01-02T15:04:05Z Started string `json:"started,omitempty"` // Status of the job // Example: Waiting // Enum: [Waiting Running Succeeded Stopping Stopped Failed DeadlineExceeded] Status string `json:"status,omitempty"` // event // Required: true Event *Event `json:"event"` }
BatchEvent BatchEvent holds general information about batch event on change of status
swagger:model BatchEvent
func (*BatchEvent) ContextValidate ¶
ContextValidate validate this batch event based on the context it is used
func (*BatchEvent) MarshalBinary ¶
func (m *BatchEvent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BatchEvent) UnmarshalBinary ¶
func (m *BatchEvent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BatchScheduleDescription ¶
type BatchScheduleDescription struct { // JobScheduleDescriptions descriptions of jobs to schedule within the batch // Required: true JobScheduleDescriptions []*JobScheduleDescription `json:"jobScheduleDescriptions"` // default radix job component config DefaultRadixJobComponentConfig *RadixJobComponentConfig `json:"defaultRadixJobComponentConfig,omitempty"` }
BatchScheduleDescription BatchScheduleDescription holds description about batch scheduling job
swagger:model BatchScheduleDescription
func (*BatchScheduleDescription) ContextValidate ¶
func (m *BatchScheduleDescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this batch schedule description based on the context it is used
func (*BatchScheduleDescription) MarshalBinary ¶
func (m *BatchScheduleDescription) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BatchScheduleDescription) UnmarshalBinary ¶
func (m *BatchScheduleDescription) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BatchStatus ¶
type BatchStatus struct { // BatchName Optional Batch ID of a job // Example: 'batch1' BatchName string `json:"batchName,omitempty"` // BatchType Single job or multiple jobs batch // Example: \"job\ BatchType string `json:"batchType,omitempty"` // Created timestamp // Example: 2006-01-02T15:04:05Z // Required: true Created *string `json:"created"` // Ended timestamp // Example: 2006-01-02T15:04:05Z Ended string `json:"ended,omitempty"` // JobId Optional ID of a job // Example: 'job1' JobID string `json:"jobId,omitempty"` // JobStatuses of the jobs in the batch JobStatuses []*JobStatus `json:"jobStatuses"` // Message, if any, of the job // Example: \"Error occurred\ Message string `json:"message,omitempty"` // Name of the job // Example: calculator // Required: true Name *string `json:"name"` // Started timestamp // Example: 2006-01-02T15:04:05Z Started string `json:"started,omitempty"` // Status of the job // Example: Waiting // Enum: [Waiting Running Succeeded Stopping Stopped Failed DeadlineExceeded] Status string `json:"status,omitempty"` }
BatchStatus BatchStatus holds general information about batch status
swagger:model BatchStatus
func (*BatchStatus) ContextValidate ¶
ContextValidate validate this batch status based on the context it is used
func (*BatchStatus) MarshalBinary ¶
func (m *BatchStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BatchStatus) UnmarshalBinary ¶
func (m *BatchStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Event ¶
type Event string
Event event
swagger:model Event
func (Event) ContextValidate ¶
ContextValidate validates this event based on context it is used
type JobScheduleDescription ¶
type JobScheduleDescription struct { // BackoffLimit defines attempts to restart job if it fails. Corresponds to BackoffLimit in K8s. BackoffLimit int32 `json:"backoffLimit,omitempty"` // ImageTagName defines the image tag name to use for the job image ImageTagName string `json:"imageTagName,omitempty"` // JobId Optional ID of a job // Example: 'job1' JobID string `json:"jobId,omitempty"` // Payload holding json data to be mapped to component // Example: {'data':'value'} Payload string `json:"payload,omitempty"` // TimeLimitSeconds defines maximum job run time. Corresponds to ActiveDeadlineSeconds in K8s. TimeLimitSeconds int64 `json:"timeLimitSeconds,omitempty"` // node Node *RadixNode `json:"node,omitempty"` // resources Resources *ResourceRequirements `json:"resources,omitempty"` }
JobScheduleDescription JobScheduleDescription holds description about scheduling job
swagger:model JobScheduleDescription
func (*JobScheduleDescription) ContextValidate ¶
func (m *JobScheduleDescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this job schedule description based on the context it is used
func (*JobScheduleDescription) MarshalBinary ¶
func (m *JobScheduleDescription) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*JobScheduleDescription) UnmarshalBinary ¶
func (m *JobScheduleDescription) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type JobStatus ¶
type JobStatus struct { // BatchName Optional Batch ID of a job // Example: 'batch1' BatchName string `json:"batchName,omitempty"` // Created timestamp // Example: 2006-01-02T15:04:05Z // Required: true Created *string `json:"created"` // Ended timestamp // Example: 2006-01-02T15:04:05Z Ended string `json:"ended,omitempty"` // JobId Optional ID of a job // Example: 'job1' JobID string `json:"jobId,omitempty"` // Message, if any, of the job // Example: \"Error occurred\ Message string `json:"message,omitempty"` // Name of the job // Example: calculator // Required: true Name *string `json:"name"` // Started timestamp // Example: 2006-01-02T15:04:05Z Started string `json:"started,omitempty"` // Status of the job // Example: Waiting // Enum: [Waiting Running Succeeded Stopping Stopped Failed DeadlineExceeded] Status string `json:"status,omitempty"` }
JobStatus JobStatus holds general information about job status
swagger:model JobStatus
func (*JobStatus) ContextValidate ¶
ContextValidate validates this job status based on context it is used
func (*JobStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (*JobStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RadixJobComponentConfig ¶
type RadixJobComponentConfig struct { // BackoffLimit defines attempts to restart job if it fails. Corresponds to BackoffLimit in K8s. BackoffLimit int32 `json:"backoffLimit,omitempty"` // ImageTagName defines the image tag name to use for the job image ImageTagName string `json:"imageTagName,omitempty"` // TimeLimitSeconds defines maximum job run time. Corresponds to ActiveDeadlineSeconds in K8s. TimeLimitSeconds int64 `json:"timeLimitSeconds,omitempty"` // node Node *RadixNode `json:"node,omitempty"` // resources Resources *ResourceRequirements `json:"resources,omitempty"` }
RadixJobComponentConfig RadixJobComponentConfig holds description of RadixJobComponent
swagger:model RadixJobComponentConfig
func (*RadixJobComponentConfig) ContextValidate ¶
func (m *RadixJobComponentConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this radix job component config based on the context it is used
func (*RadixJobComponentConfig) MarshalBinary ¶
func (m *RadixJobComponentConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RadixJobComponentConfig) UnmarshalBinary ¶
func (m *RadixJobComponentConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RadixNode ¶
type RadixNode struct { // Defines rules for allowed GPU types. // More info: https://www.radix.equinor.com/references/reference-radix-config/#gpu // +optional Gpu string `json:"gpu,omitempty"` // Defines minimum number of required GPUs. // +optional GpuCount string `json:"gpuCount,omitempty"` }
RadixNode RadixNode defines node attributes, where container should be scheduled
swagger:model RadixNode
func (*RadixNode) ContextValidate ¶
ContextValidate validates this radix node based on context it is used
func (*RadixNode) MarshalBinary ¶
MarshalBinary interface implementation
func (*RadixNode) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ResourceList ¶
ResourceList ResourceList defines a resource and a value.
swagger:model ResourceList
func (ResourceList) ContextValidate ¶
ContextValidate validates this resource list based on context it is used
type ResourceRequirements ¶
type ResourceRequirements struct { // limits Limits ResourceList `json:"limits,omitempty"` // requests Requests ResourceList `json:"requests,omitempty"` }
ResourceRequirements ResourceRequirements describes the compute resource requirements.
More info: https://www.radix.equinor.com/references/reference-radix-config/#resources-common
swagger:model ResourceRequirements
func (*ResourceRequirements) ContextValidate ¶
ContextValidate validate this resource requirements based on the context it is used
func (*ResourceRequirements) MarshalBinary ¶
func (m *ResourceRequirements) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResourceRequirements) UnmarshalBinary ¶
func (m *ResourceRequirements) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Status ¶
type Status struct { // Suggested HTTP return code for this status, 0 if not set. // Example: 404 Code int64 `json:"code,omitempty"` // A human-readable description of the status of this operation. // Example: job job123 is not found Message string `json:"message,omitempty"` // Status of the operation. // One of: "Success" or "Failure". // Example: Failure Status string `json:"status,omitempty"` // reason Reason StatusReason `json:"reason,omitempty"` }
Status Status is a return value for calls that don't return other objects or when a request returns an error
swagger:model Status
func (*Status) ContextValidate ¶
ContextValidate validate this status based on the context it is used
func (*Status) MarshalBinary ¶
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type StatusReason ¶
type StatusReason string
StatusReason status reason
swagger:model StatusReason
func (StatusReason) ContextValidate ¶
ContextValidate validates this status reason based on context it is used