Documentation
¶
Index ¶
- type Buffer
- type BufferAccess
- type BufferParameters
- type Cluster
- type Codespec
- type CodespecMetadata
- type CodespecRef
- type CodespecResources
- type ErrorInfo
- type ErrorResponse
- type ExportBuffersRequest
- type InlineCodespecRef
- type NamedCodespecRef
- type NodePool
- type OvercommittableResources
- type Page
- type Run
- type RunCodeTarget
- type RunMetadata
- type RunStatus
- type ServiceMetadata
- type Socket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferAccess ¶
type BufferAccess struct {
Uri string `json:"uri"`
}
type BufferParameters ¶
type Codespec ¶
type Codespec struct { Kind string `json:"kind"` CodespecMetadata `json:",inline"` Buffers *BufferParameters `json:"buffers,omitempty"` Sockets []Socket `json:"sockets,omitempty"` Image string `json:"image"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` WorkingDir string `json:"workingDir,omitempty"` Env map[string]string `json:"env,omitempty"` Identity string `json:"identity,omitempty"` Resources *CodespecResources `json:"resources,omitempty"` MaxReplicas *int `json:"maxReplicas,omitempty"` Endpoints map[string]int `json:"endpoints,omitempty"` }
type CodespecMetadata ¶
type CodespecRef ¶
type CodespecRef struct { Named *NamedCodespecRef `json:"-"` Inline *InlineCodespecRef `json:"-"` }
func (CodespecRef) MarshalJSON ¶
func (ref CodespecRef) MarshalJSON() ([]byte, error)
func (*CodespecRef) UnmarshalJSON ¶
func (ref *CodespecRef) UnmarshalJSON(data []byte) error
type CodespecResources ¶
type CodespecResources struct { Requests *OvercommittableResources `json:"requests,omitempty"` Limits *OvercommittableResources `json:"limits,omitempty"` Gpu *resource.Quantity `json:"gpu,omitempty"` }
type ErrorResponse ¶
type ErrorResponse struct {
Error ErrorInfo `json:"error"`
}
type ExportBuffersRequest ¶
type InlineCodespecRef ¶
type InlineCodespecRef Codespec
type NamedCodespecRef ¶
type NamedCodespecRef string
type Run ¶
type Run struct { RunMetadata Kind string `json:"kind,omitempty"` Job RunCodeTarget `json:"job,omitempty"` Worker *RunCodeTarget `json:"worker,omitempty"` Cluster string `json:"cluster,omitempty"` TimeoutSeconds *int `json:"timeoutSeconds,omitempty"` }
type RunCodeTarget ¶
type RunMetadata ¶
type RunMetadata struct { Id int64 `json:"id,omitempty"` Status *RunStatus `json:"status,omitempty"` StatusReason string `json:"statusReason,omitempty"` RunningCount *int `json:"runningCount,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` StartedAt *time.Time `json:"startedAt,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` }
type RunStatus ¶
type RunStatus int
const ( // The run has been created, but is waiting to start Pending RunStatus = iota // The Run is currently running Running // Indicates that the run has failed, see the StatusReason field for information on why. Failed // Indicates that the run has compeleted successfully Succeeded // The run is in the process of being canceled. Canceling // The run was canceled. Canceled )
func (RunStatus) MarshalJSON ¶
func (*RunStatus) UnmarshalJSON ¶
type ServiceMetadata ¶
Click to show internal directories.
Click to hide internal directories.