data

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterVMSizeOfferedByLocation added in v0.8.2

func FilterVMSizeOfferedByLocation(vmSizes []string, location string) ([]string, error)

Get InstanceTypes offerings on current location

func IsImageOffered

func IsImageOffered(req ImageRequest) bool

func IsVMSizeOfferedByLocation added in v0.8.2

func IsVMSizeOfferedByLocation(vmSize, location string) (bool, error)

func SkuG2Support added in v0.9.1

func SkuG2Support(location string, publisher string, offer string, sku string) (string, error)

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
}

type OSType

type OSType int
const (
	Ubuntu OSType = iota + 1
	RHEL
	Fedora
)

Jump to

Keyboard shortcuts

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