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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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