Documentation ¶
Overview ¶
kvm package provides supporting functions for kvm flavor such as: VM networking, volume sharing
Index ¶
- func GenerateNetworkInterfaceUnits(unitsPath string, netDescriptions []netDescriber) error
- func GetAppsResources(apps schema.AppList) (totalCpus, totalMem int64)
- func GetKVMNetArgs(nds []netDescriber) ([]string, error)
- func GetNetworkDescriptions(n *networking.Networking) []netDescriber
- func InitDebug(debug bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNetworkInterfaceUnits ¶ added in v0.12.0
func GetAppsResources ¶ added in v0.14.0
GetAppsResources returns values specified by user in pod-manifest. Function expects a podmanifest apps. Return aggregate quantity of mem (in MB) and cpus.
func GetKVMNetArgs ¶
GetKVMNetArgs returns additional arguments that need to be passed to lkvm tool to configure networks properly. Logic is based on Network configuration extracted from Networking struct and essentially from activeNets that expose netDescriber behavior
func GetNetworkDescriptions ¶ added in v0.8.1
func GetNetworkDescriptions(n *networking.Networking) []netDescriber
GetNetworkDescriptions explicitly convert slice of activeNets to slice of netDescribers which is slice required by GetKVMNetArgs
Types ¶
This section is empty.