Documentation
¶
Index ¶
- func FilterVMSizeOfferedByLocation(vmSizes []string, location string) ([]string, error)
- func GetImage(req ImageRequest) (*armcompute.CommunityGalleryImagesClientGetResponse, error)
- func IsImageOffered(req ImageRequest) bool
- func IsVMSizeOfferedByLocation(vmSize, location string) (bool, error)
- type ImageReference
- type ImageRequest
- type OSType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterVMSizeOfferedByLocation ¶ added in v0.8.2
Get InstanceTypes offerings on current location
func GetImage ¶
func GetImage(req ImageRequest) (*armcompute.CommunityGalleryImagesClientGetResponse, error)
func IsImageOffered ¶
func IsImageOffered(req ImageRequest) bool
func IsVMSizeOfferedByLocation ¶ added in v0.8.2
Types ¶
type ImageReference ¶
type ImageReference struct {
Publisher string
Offer string
Sku string
// community gallery image ID
ID string
}
func GetImageRef ¶
func GetImageRef(osTarget OSType, arch string, version string) (*ImageReference, error)
version should came in format X.Y (major.minor)
type ImageRequest ¶
type ImageRequest struct {
Region string
ImageReference
}
Click to show internal directories.
Click to hide internal directories.