types

package
v1.46.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUArchitectureEnum

type CPUArchitectureEnum string
const (
	CPUArchitectureAMD64 CPUArchitectureEnum = "amd64"
	CPUArchitectureARM64 CPUArchitectureEnum = "arm64" // namely aarch64
)

type GPUNodeInstanceInfo

type GPUNodeInstanceInfo struct {
	InstanceType string
	CPUs         int32
	MemoryGiB    int32

	// In TFlops and GB for every GPU
	FP16TFlopsPerGPU    float64
	VRAMGigabytesPerGPU int32

	GPUModel string
	GPUCount int32

	CPUArchitecture CPUArchitectureEnum
	GPUVendor       GPUVendorEnum
}

type GPUNodeProvider

type GPUNodeProvider interface {
	TestConnection() error

	CreateNode(ctx context.Context, param *tfv1.GPUNodeClaim) (*GPUNodeStatus, error)
	TerminateNode(ctx context.Context, param *NodeIdentityParam) error
	GetNodeStatus(ctx context.Context, param *NodeIdentityParam) (*GPUNodeStatus, error)

	GetInstancePricing(instanceType string, capacityType tfv1.CapacityTypeEnum, region string) (float64, error)

	GetGPUNodeInstanceTypeInfo(region string) []GPUNodeInstanceInfo
}

type GPUNodeStatus

type GPUNodeStatus struct {
	InstanceID string
	CreatedAt  time.Time

	PrivateIP string
	PublicIP  string
}

type GPUVendorEnum added in v1.41.0

type GPUVendorEnum string
const (
	// GPU manufacturer
	GPUVendorNvidia GPUVendorEnum = "NVIDIA"
	GPUVendorAMD    GPUVendorEnum = "AMD"
	GPUVendorIntel  GPUVendorEnum = "Intel"
	GPUVendorAWS    GPUVendorEnum = "AWS"
)

type NodeIdentityParam

type NodeIdentityParam struct {
	InstanceID string
	Region     string
}

Jump to

Keyboard shortcuts

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