Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUKind ¶
type CPUKind string
CPUKind represents the type of compute.
const ( ComputeKindPerformanceCPU CPUKind = "performance" )
type Compute ¶
type Compute struct { Pool *string `json:"pool,omitempty" validate:"omitempty"` NumReplicas int `json:"numReplicas" validate:"min=0,max=1000"` Regions []Region `json:"regions,omitempty" validate:"omitempty"` CPUs int `json:"cpus" validate:"min=1,max=64"` CPUKind CPUKind `json:"computeKind" validate:"required,oneof=shared performance"` MemoryMB int `json:"memoryMb" validate:"min=256,max=65536"` // GPU-specific fields GPUKind *GPUKind `json:"gpuKind,omitempty" validate:"omitempty"` GPUs *int `json:"gpus,omitempty" validate:"omitempty,min=1,max=8"` }
Compute is the base struct for different compute configurations.
func (*Compute) ComputeHash ¶
ComputeHash generates a SHA256 hash of the Compute configuration.
type GPUKind ¶
type GPUKind = rest.CreateManagedWorkerRuntimeConfigRequestGpuKind
Click to show internal directories.
Click to hide internal directories.