computeskus

package
v0.0.0-...-2b36003 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL