Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadModel ¶
NewReadModel ...
Types ¶
type Capacity ¶
type Capacity struct {
Count *int `json:"count,omitempty"`
CPUCores *int `json:"cpu_cores,omitempty"`
RamGB *float64 `json:"ram_gb,omitempty"` // nolint
DiskGB *float64 `json:"disk_gb,omitempty"`
GPUCapacity *GPUCapacity `json:"gpu_capacity,omitempty"`
}
Capacity ...
type Cluster ¶
type Cluster struct {
ID string `gorm:"column:id;type:VARCHAR(32);not null;primaryKey"`
HeartbeatTimestamp time.Time `gorm:"column:heartbeat_timestamp;type:DATETIME;not null"`
Capacity *Capacity `gorm:"column:capacity;type:LONGTEXT;serializer:json"`
Limits *Limits `gorm:"column:limits;type:LONGTEXT;serializer:json"`
}
Cluster ...
type GPUCapacity ¶
GPUCapacity ...
Click to show internal directories.
Click to hide internal directories.