Documentation ¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- func IsInvalidRequest(err error) bool
- func IsInvalidUpstreamResponse(err error) bool
- func IsSkuNotFoundError(err error) bool
- type API
- type Azure
- type AzureConfig
- type Config
- type VMSKU
- func (v *VMSKU) CPUs(ctx context.Context, location string, vmType string) (int, error)
- func (v *VMSKU) HasCapability(ctx context.Context, location string, vmType string, name string) (bool, error)
- func (v *VMSKU) Memory(ctx context.Context, location string, vmType string) (int, error)
- func (v *VMSKU) SupportedAZs(ctx context.Context, location string, vmType string) ([]string, error)
Constants ¶
View Source
const ( // CapabilitySupported is the value returned by this API from Azure when the capability is supported CapabilitySupported = "True" CapabilityAcceleratedNetworking = "AcceleratedNetworkingEnabled" CapabilityPremiumIO = "PremiumIO" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidRequest ¶
IsInvalidRequest asserts invalidRequestError.
func IsInvalidUpstreamResponse ¶
IsInvalidUpstreamResponse asserts invalidUpstreamResponseError.
func IsSkuNotFoundError ¶
IsSkuNotFoundError asserts skuNotFoundError.
Types ¶
type API ¶
type API interface {
List(ctx context.Context, filter string) (map[string]compute.ResourceSku, error)
}
func NewAzureAPI ¶
func NewAzureAPI(c AzureConfig) API
type AzureConfig ¶
type AzureConfig struct {
ResourceSkuClient *compute.ResourceSkusClient
}
type Config ¶
type Config struct { Azure API Logger micrologger.Logger }
Click to show internal directories.
Click to hide internal directories.