nodes

package
v1.0.2-beta.rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 ResourceAggregate struct {
	MonthlyPrice float64 `json:"monthlyPrice,omitempty"`
	HourlyPrice  float64 `json:"hourlyPrice,omitempty"`
	MemRequests  string  `json:"memRequests"`
	CpuRequests  string  `json:"cpuRequests"`
}

type ResourceMinMax

type ResourceMinMax struct {
	Max ResourceAggregate `json:"max"`
	Min ResourceAggregate `json:"min"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL