guest

package
v0.0.0-...-3a64f8a Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CPUs                      int
	RamMb                     int
	Storage                   *image.Config
	LargeHugePagesSupported   bool
	NUMAs                     []*NUMA
	HostNUMAIds               []int
	NICLists                  []NICList
	Networks                  []*xmlinput.Network
	OptimizationFailureMemory bool
	OptimizationFailureCPU    bool
	OptimizationFailureMsg    string
}

func NewConfig

func NewConfig() *Config

func (*Config) ReconfigureMultipleVirtualNUMAs

func (c *Config) ReconfigureMultipleVirtualNUMAs(numas host.NUMANodes) error

func (*Config) SetTopologyMultipleVirtualNUMAs

func (c *Config) SetTopologyMultipleVirtualNUMAs(numas host.NUMANodes) error

func (*Config) SetTopologySingleVirtualNUMA

func (c *Config) SetTopologySingleVirtualNUMA(numas host.NUMANodes, singleNuma bool) error

type NIC

type NIC struct {
	Network string
	PCIAddr *PCI
	HostNIC *host.NIC
}

func NewNIC

func NewNIC() *NIC

type NICList

type NICList []*NIC

func NewNICList

func NewNICList() NICList

func (*NICList) Add

func (list *NICList) Add(n *NIC)

func (*NICList) AppendList

func (list *NICList) AppendList(l NICList)

func (NICList) IndexByPCISlot

func (list NICList) IndexByPCISlot(pcislot string) (int, error)

func (NICList) Length

func (list NICList) Length() int

func (NICList) NicByHostNicObj

func (list NICList) NicByHostNicObj(n *host.NIC) (*NIC, int, error)

func (NICList) NicsByHostNicVendor

func (list NICList) NicsByHostNicVendor(vendor string) NICList

func (NICList) NicsByNUMAId

func (list NICList) NicsByNUMAId(cellID int) NICList

func (*NICList) Remove

func (list *NICList) Remove(index int)

func (NICList) SortByPCISlot

func (list NICList) SortByPCISlot()

type NUMA

type NUMA struct {
	CellID   int
	MemoryMb int
	CPUPin   map[int][]int
	NICs     NICList
}

type PCI

type PCI struct {
	// Domain address
	Domain string

	// Bus address
	Bus string

	// Slot address
	Slot string

	// Function address
	Function string
}

type SortByPCISlot

type SortByPCISlot NICList

func (SortByPCISlot) Len

func (list SortByPCISlot) Len() int

func (SortByPCISlot) Less

func (list SortByPCISlot) Less(i, j int) bool

func (SortByPCISlot) Swap

func (list SortByPCISlot) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL