Version: v1.30.0 Latest Latest

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 15 Imported by: 9



kvm package provides supporting functions for kvm flavor such as: VM networking, volume sharing



This section is empty.


This section is empty.


func GenerateNetworkInterfaceUnits added in v0.12.0

func GenerateNetworkInterfaceUnits(unitsPath string, netDescriptions []NetDescriber) error

func GetAppsResources added in v0.14.0

func GetAppsResources(apps schema.AppList) (totalCpus, totalMem int64)

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

func GetKVMNetArgs(nds []NetDescriber) ([]string, error)

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 InitDebug added in v1.9.0

func InitDebug(debug bool)


type NetDescriber added in v1.11.0

type NetDescriber interface {
	GuestIP() net.IP
	Mask() net.IP
	IfName() string
	IPMasq() bool
	Name() string
	Gateway() net.IP
	Routes() []types.Route

NetDescriber is the interface that describes a network configuration

func GetNetworkDescriptions added in v0.8.1

func GetNetworkDescriptions(n *networking.Networking) []NetDescriber

GetNetworkDescriptions converts activeNets to netDescribers


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL