Documentation
¶
Index ¶
- func GetFlavorForServerlessConfig(ctx context.Context, flavors []edgeproto.Flavor, ...) (*edgeproto.Flavor, error)
- func OSFlavorResources(ctx context.Context, flavor edgeproto.FlavorInfo, ...) (offered map[string]struct{}, count int)
- func ToggleFlavorMatchVerbose() string
- func ValidateGPUResource(ctx context.Context, nodeflavor edgeproto.Flavor, cli edgeproto.CloudletInfo, ...) error
- type VMCreationSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.