Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidProvider = errors.New("not a valid Provider")
Functions ¶
This section is empty.
Types ¶
type GPUWatt ¶ added in v0.2.0
func GetGPUWatt ¶ added in v0.2.0
Source: https://www.cloudcarbonfootprint.org/docs/methodology#appendix-iii-gpus-and-minmax-watts
type Provider ¶
type Provider int
ENUM(AWS, AZURE, GCP)
func ParseProvider ¶ added in v0.3.0
ParseProvider attempts to convert a string to a Provider.
func (Provider) MarshalText ¶ added in v0.3.0
MarshalText implements the text marshaller method.
func (*Provider) UnmarshalText ¶ added in v0.3.0
UnmarshalText implements the text unmarshaller method.
type UnsupportedProviderError ¶
type UnsupportedProviderError struct {
Provider string
}
func (*UnsupportedProviderError) Error ¶
func (upe *UnsupportedProviderError) Error() string
Click to show internal directories.
Click to hide internal directories.