computeskus

package
v0.0.0-...-570ee26 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterVMSizes

func FilterVMSizes(skus []mgmtcompute.ResourceSku, location string) map[string]*mgmtcompute.ResourceSku

FilterVMSizes filters resource SKU by location and returns only virtual machines, their names, restrictions, location info, and capabilities.

func HasCapability

func HasCapability(sku *mgmtcompute.ResourceSku, capabilityName string) bool

HasCapability checks whether given resource SKU has specific capability

func IsRestricted

func IsRestricted(skus map[string]*mgmtcompute.ResourceSku, location, VMSize string) bool

IsRestricted checks whether given resource SKU is restricted in a given location

func SupportedOSDisk

func SupportedOSDisk(vmSku *mgmtcompute.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 *mgmtcompute.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