Documentation ¶
Overview ¶
Package nodespec gives us access to provider-specific node specification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInstanceTypeNotFoundErr ¶
IsInstanceTypeNotFoundErr asserts instanceTypeNotFoundErr.
func IsVMSizeNotFoundErr ¶
IsVMSizeNotFoundErr asserts vmSizeNotFoundErr.
Types ¶
type InstanceType ¶
type InstanceType struct { CPUCores int `yaml:"cpu_cores"` Description string `yaml:"description"` MemorySizeGB int `yaml:"memory_size_gb"` StorageSizeGB int `yaml:"storage_size_gb"` }
InstanceType describes an AWS instance type
type ProviderAWS ¶
type ProviderAWS struct {
// contains filtered or unexported fields
}
ProviderAWS contains all provider specific info
func (*ProviderAWS) GetInstanceTypeDetails ¶
func (p *ProviderAWS) GetInstanceTypeDetails(name string) (*InstanceType, error)
GetInstanceTypeDetails returns info on a certain instance type
type ProviderAzure ¶
type ProviderAzure struct {
// contains filtered or unexported fields
}
ProviderAzure contains all provider specific info
func NewAzureProvider ¶
func NewAzureProvider() (*ProviderAzure, error)
NewAzureProvider initiates a new Azure provider with the information about VM sizes.
func (*ProviderAzure) GetVMSizeDetails ¶
func (p *ProviderAzure) GetVMSizeDetails(name string) (*VMSize, error)
GetVMSizeDetails returns info on a certain VM size
type VMSize ¶
type VMSize struct { Description string `yaml:"description"` MaxDataDiskCount int `yaml:"maxDataDiskCount"` MemoryInMB float64 `yaml:"memoryInMb"` Name string `yaml:"name"` NumberOfCores int64 `yaml:"numberOfCores"` OSDiskSizeInMB int64 `yaml:"osDiskSizeInMb"` ResourceDiskSizeInMB float64 `yaml:"resourceDiskSizeInMb"` }
Click to show internal directories.
Click to hide internal directories.