Documentation
¶
Index ¶
- Variables
- func HasCapability(sku *sdkcompute.ResourceSKU, capabilityName string) bool
- func IsRestricted(sku *sdkcompute.ResourceSKU, location string) bool
- func ListUnrestrictedVMSkusInCurrentRegion(ctx context.Context, resourceSkusClient armcompute.ResourceSKUsClient, ...) ([]string, error)
- func SelectVMSkusInCurrentRegion(ctx context.Context, resourceSkusClient armcompute.ResourceSKUsClient, ...) (map[string]*sdkcompute.ResourceSKU, error)
- func SupportedOSDisk(vmSku *sdkcompute.ResourceSKU) string
- func Zones(sku *sdkcompute.ResourceSKU) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrListVMResourceSKUs = errors.New("failure listing resource SKUs")
Functions ¶
func HasCapability ¶
func HasCapability(sku *sdkcompute.ResourceSKU, capabilityName string) bool
HasCapability checks whether given resource SKU has specific capability
func IsRestricted ¶
func IsRestricted(sku *sdkcompute.ResourceSKU, location string) bool
IsRestricted checks whether given resource SKU is restricted in a given location
func ListUnrestrictedVMSkusInCurrentRegion ¶
func ListUnrestrictedVMSkusInCurrentRegion(ctx context.Context, resourceSkusClient armcompute.ResourceSKUsClient, location string) ([]string, error)
func SelectVMSkusInCurrentRegion ¶
func SelectVMSkusInCurrentRegion(ctx context.Context, resourceSkusClient armcompute.ResourceSKUsClient, location string, skuNames []string) (map[string]*sdkcompute.ResourceSKU, error)
func SupportedOSDisk ¶
func SupportedOSDisk(vmSku *sdkcompute.ResourceSKU) string
SupportedOSDisk returns the type of OSDisk for the given resource. Most VMs will use Premium disks but some SKUs only support Standard SSDs
func Zones ¶
func Zones(sku *sdkcompute.ResourceSKU) []string
Zones returns zone information for the resource SKU
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.