Documentation
¶
Index ¶
- Variables
- type Buffer
- type BufferAccess
- type BufferParameters
- type Cluster
- type Codespec
- type CodespecMetadata
- type CodespecRef
- type CodespecResources
- type ErrorInfo
- type ErrorResponse
- type ExportBuffersRequest
- type ImportBuffersRequest
- type InlineCodespecRef
- type NamedCodespecRef
- type NodePool
- type OvercommittableResources
- type Page
- type Run
- type RunCodeTarget
- type RunMetadata
- type RunStatus
- type ServiceMetadata
- type Socket
- type StorageAccount
Constants ¶
This section is empty.
Variables ¶
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"`
Shm *resource.Quantity `json:"shm,omitempty"`
}
type ErrorInfo ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error ErrorInfo `json:"error"`
}
type ExportBuffersRequest ¶
type ImportBuffersRequest ¶
type ImportBuffersRequest struct {
StorageAccountName string `json:"storageAccountName"`
}
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"`
Tags map[string]string `json:"tags,omitempty"`
ETag string `json:"eTag,omitempty"`
BufferAccessTtl string `json:"bufferAccessTtl,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"`
Tags map[string]string `json:"tags,omitempty"`
}
type RunStatus ¶
type RunStatus uint
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 ¶
type ServiceMetadata struct {
RbacEnabled bool `json:"rbacEnabled,omitempty"`
Authority string `json:"authority,omitempty"`
Audience string `json:"audience,omitempty"`
ApiAppUri string `json:"serverAppUri,omitempty"`
ApiAppId string `json:"serverAppId,omitempty"`
CliAppUri string `json:"cliAppUri,omitempty"`
CliAppId string `json:"cliAppId,omitempty"`
Capabilities []string `json:"capabilities,omitempty"`
ApiVersions []string `json:"apiVersions,omitempty"`
DataPlaneProxy string `json:"dataPlaneProxy,omitempty"` // Only used by tyger-proxy
TlsCaCertificates string `json:"tlsCaCertificates,omitempty"` // Only used by tyger-proxy
StorageEndpoints []string `json:"storageEndpoints,omitempty"`
}
type StorageAccount ¶
Click to show internal directories.
Click to hide internal directories.