gcp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUWatt

type CPUWatt struct {
	Architecture        string
	MinWatts            decimal.Decimal
	MaxWatts            decimal.Decimal
	GridCarbonIntensity decimal.Decimal
}

CPUWatt is a struct that contains the information of a GCP CPU type

type MachineType

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

MachineType is a struct that contains the information of a GCP machine type

func GetGCPMachineType

func GetGCPMachineType(machineTypeStr string, zone string) MachineType

GetGCPMachineType returns the information of a GCP instance type

type SQLTier added in v0.4.0

type SQLTier struct {
	Name        string `json:"name"`
	Vcpus       int64  `json:"vcpus"`
	MemoryMb    int64  `json:"memoryMb"`
	DiskQuotaGB int64  `json:"DiskQuotaGB"`
}

SQLTier is a struct that contains the information of a GCP SQL tier

func GetGCPSQLTier

func GetGCPSQLTier(tierName string) SQLTier

GetGCPSQLTier returns the information of a GCP SQL tier

Jump to

Keyboard shortcuts

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