Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNodeGroups ¶
func CreateNodeGroups()
func DeployNodes ¶
func DeployNodes()
func GetNodes ¶
func GetNodes(ctx context.Context, z zeus_client.ZeusClient, searchParams NodeSearchParams) (any, error)
func ScheduleNodes ¶
func ScheduleNodes()
Types ¶
type Node ¶
type Node struct { Memory int `db:"memory" json:"memory"` Vcpus float64 `db:"vcpus" json:"vcpus"` Disk int `db:"disk" json:"disk"` DiskUnits string `db:"disk_units" json:"diskUnits"` DiskType string `db:"disk_type" json:"diskType"` PriceHourly float64 `db:"price_hourly" json:"priceHourly"` Region string `db:"region" json:"region"` CloudProvider string `db:"cloud_provider" json:"cloudProvider"` ResourceID int `db:"resource_id" json:"resourceID"` Description string `db:"description" json:"description"` Slug string `db:"slug" json:"slug"` MemoryUnits string `db:"memory_units" json:"memoryUnits"` PriceMonthly float64 `db:"price_monthly" json:"priceMonthly"` Gpus int `db:"gpus" json:"gpus"` GpuType string `db:"gpu_type" json:"gpuType"` }
type NodeGroup ¶
type NodeGroup struct { NodesSlice NodesSlice `json:"nodesSlice"` Taints []v1.Taint `json:"taints,omitempty"` }
type NodeSearchParams ¶
type NodeSearchParams struct { CloudProviderRegions map[string][]string `json:"cloudProviderRegions"` DiskType string `json:"diskType,omitempty"` ResourceMinMax ResourceMinMax `json:"resourceMinMax,omitempty"` }
type NodeSearchRequest ¶
type NodeSearchRequest struct {
NodeSearchParams `json:"nodeSearchParams"`
}
type NodesSlice ¶
type NodesSlice []Node
type ResourceAggregate ¶
type ResourceMinMax ¶
type ResourceMinMax struct { Max ResourceAggregate `json:"max"` Min ResourceAggregate `json:"min"` }
Click to show internal directories.
Click to hide internal directories.