sku

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapKeys

func GetMapKeys(m map[string]GPUConfig) []string

Types

type AwsSKUHandler

type AwsSKUHandler struct {
	// contains filtered or unexported fields
}

func NewAwsSKUHandler

func NewAwsSKUHandler() *AwsSKUHandler

func (*AwsSKUHandler) GetGPUConfigs

func (a *AwsSKUHandler) GetGPUConfigs() map[string]GPUConfig

func (*AwsSKUHandler) GetSupportedSKUs

func (a *AwsSKUHandler) GetSupportedSKUs() []string

type AzureSKUHandler

type AzureSKUHandler struct {
	// contains filtered or unexported fields
}

func NewAzureSKUHandler

func NewAzureSKUHandler() *AzureSKUHandler

func (*AzureSKUHandler) GetGPUConfigs

func (a *AzureSKUHandler) GetGPUConfigs() map[string]GPUConfig

func (*AzureSKUHandler) GetSupportedSKUs

func (a *AzureSKUHandler) GetSupportedSKUs() []string

type CloudSKUHandler

type CloudSKUHandler interface {
	GetSupportedSKUs() []string
	GetGPUConfigs() map[string]GPUConfig
}

func GetCloudSKUHandler added in v0.3.1

func GetCloudSKUHandler(cloud string) CloudSKUHandler

type GPUConfig

type GPUConfig struct {
	SKU      string
	GPUCount int
	GPUMem   int
	GPUModel string
}

Jump to

Keyboard shortcuts

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