Documentation ¶
Overview ¶
package factory defines the full function factory interface package base defines the base factory interface package cache and direct implement base.Factory package single and multi implement fatory.Factory
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { GetVm(cpu, mem int) (*hypervisor.Vm, error) CloseFactory() }
func NewFromConfigs ¶
func NewFromConfigs(kernel, initrd string, configs []FactoryConfig) Factory
func NewFromPolicy ¶
vmFactoryPolicy = [FactoryConfig,]*FactoryConfig FactoryConfig = {["cache":NUMBER,]"cpu":NUMBER,"memory":NUMBER}
type FactoryConfig ¶
Click to show internal directories.
Click to hide internal directories.