nodesource

package
v2.0.0-...-d9f0f44 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSNode

type AWSNode struct {
	InstanceType  string   `json:"instanceType"`
	OnDemandPrice float64  `json:"onDemandPriceUSD"`
	VCPU          int      `json:"vcpu"`
	Memory        float32  `json:"memory"`
	GPU           int      `json:"gpu"`
	MaxPods       int      `json:"maxPods"`
	Arch          []string `json:"arch"`
}

func (*AWSNode) GetHourlyPrice

func (n *AWSNode) GetHourlyPrice() float64

func (*AWSNode) GetNodeConfig

func (n *AWSNode) GetNodeConfig(nodeName string) *config.NodeConfig

type AWSNodeSource

type AWSNodeSource struct {
	AWSRegion           string
	InstanceTypes       []string
	VolumeSizePerNodeGB int64 // TODO
}

func (*AWSNodeSource) GetNodes

func (s *AWSNodeSource) GetNodes() ([]*AWSNode, error)

type Node

type Node interface {
	GetHourlyPrice() float64
	GetNodeConfig(nodeName string) *config.NodeConfig
}

type NodeSource

type NodeSource interface {
	GetNodes() ([]Node, error)
}

Jump to

Keyboard shortcuts

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