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
func GetCPUWatt ¶
Source: https://github.com/cloud-carbon-footprint/cloud-carbon-coefficients/blob/5fcb96101c6f28dac5060f8794bca5d4da6c72d8/output/coefficients-gcp-use.csv GetCPUWatt returns the min and max watts of a CPU
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 ¶
GetGCPSQLTier returns the information of a GCP SQL tier
Click to show internal directories.
Click to hide internal directories.