vmspec

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlavorForServerlessConfig

func GetFlavorForServerlessConfig(ctx context.Context, flavors []edgeproto.Flavor, sconfig *edgeproto.ServerlessConfig) (*edgeproto.Flavor, error)

func OSFlavorResources

func OSFlavorResources(ctx context.Context, flavor edgeproto.FlavorInfo, tbls map[string]*edgeproto.ResTagTable) (offered map[string]struct{}, count int)

func ToggleFlavorMatchVerbose

func ToggleFlavorMatchVerbose() string

func ValidateGPUResource

func ValidateGPUResource(ctx context.Context, nodeflavor edgeproto.Flavor, cli edgeproto.CloudletInfo, tbls map[string]*edgeproto.ResTagTable) error

Types

type VMCreationSpec

type VMCreationSpec struct {
	FlavorName         string
	ExternalVolumeSize uint64
	AvailabilityZone   string
	ImageName          string
	TrustPolicy        *edgeproto.TrustPolicy
	MasterNodeFlavor   string
	FlavorInfo         *edgeproto.FlavorInfo
}

VMCreationSpec includes the flavor and other aspects needed to instantiate a VM

func GetVMSpec

func GetVMSpec(ctx context.Context, nodeflavor edgeproto.Flavor, cli edgeproto.CloudletInfo, tbls map[string]*edgeproto.ResTagTable) (*VMCreationSpec, error)

GetVMSpec returns the VMCreationAttributes including flavor name and the size of the external volume which is required, if any

func GetVMSpecCloudletFlavor

func GetVMSpecCloudletFlavor(ctx context.Context, cloudletFlavorName string, cli edgeproto.CloudletInfo) (*VMCreationSpec, error)

Jump to

Keyboard shortcuts

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