providers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWS = iota
	AZURE
	GCP
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MachineType

type MachineType struct {
	Name     string   `json:"name"`
	Vcpus    int32    `json:"vcpus"`
	Gpus     int32    `json:"gpus"`
	MemoryMb int32    `json:"memoryMb"`
	CpuTypes []string `json:"cpuTypes"`
}

func GetGCPMachineType

func GetGCPMachineType(machineTypeStr string, zone string) MachineType

type Provider

type Provider int

func (Provider) String

func (p Provider) String() string

type UnsupportedProviderError

type UnsupportedProviderError struct {
	Provider string
}

func (*UnsupportedProviderError) Error

func (upe *UnsupportedProviderError) Error() string

Jump to

Keyboard shortcuts

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