libvirt_kvm

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: 18 Imported by: 0

Documentation

Overview

Intended for creating configuration related to those deployments where the target appliance assumed to be powered by libvirt API

Index

Constants

View Source
const (
	TmpltFileCpuConfig = "template_cpu_config.xml"
)

--- metadata configuration: cpu configuration --- //

View Source
const (
	TmpltFileCpuTune = "template_cpu_tune.xml"
)
View Source
const (
	TmpltFileNUMATune = "template_numa_tune.xml"
)
View Source
const (
	TmpltFileStorage = "template_storage.xml"
)

--- metadata configuration: storage --- //

Variables

View Source
var TmpltBridged = `` /* 283-byte string literal not displayed */
View Source
var TmpltBridgedOVS = `` /* 325-byte string literal not displayed */
View Source
var TmpltCpuConfig = `` /* 126-byte string literal not displayed */
View Source
var TmpltCpuTune = `<cputune>{{.CpuTuneData}}</cputune>`
View Source
var TmpltDirect = `` /* 275-byte string literal not displayed */
View Source
var TmpltNUMATune = `<numatune>
    <memory mode='{{.MemMode}}' nodeset='{{.NUMACells}}'/>
    {{.MemNodes}}
  </numatune>`
View Source
var TmpltPassthrough = `` /* 393-byte string literal not displayed */
View Source
var TmpltSriovPassthrough = `` /* 386-byte string literal not displayed */
View Source
var TmpltStorage = `` /* 190-byte string literal not displayed */
View Source
var TmpltVirtNetwork = `` /* 296-byte string literal not displayed */

Functions

func MultiQueueSupported

func MultiQueueSupported(sshconfig *ssh.Config) (bool, error)

func MultiQueueSupportedMock

func MultiQueueSupportedMock(kernelVersion, libvirtVersion string, sshconfig *ssh.Config) (bool, error)

For testing purpose

Types

type BridgedData

type BridgedData struct {
	Bridge           string
	Driver           string
	GuestNicDomain   string
	GuestNicBus      string
	GuestNicSlot     string
	GuestNicFunction string
}

type BridgedOVSData

type BridgedOVSData struct {
	OVSBridge        string
	Driver           string
	GuestNicDomain   string
	GuestNicBus      string
	GuestNicSlot     string
	GuestNicFunction string
}

type CpuConfigData

type CpuConfigData struct {
	CPUPolicy  string
	NUMAConfig string
}

type CpuTuneData

type CpuTuneData struct {
	CpuTuneData string
}

type DirectData

type DirectData struct {
	IfaceName        string
	Driver           string
	GuestNicDomain   string
	GuestNicBus      string
	GuestNicSlot     string
	GuestNicFunction string
}

type DiskData

type DiskData struct {
	ImagePath         string
	StorageType       image.StorageType
	BlockDeviceSuffix string
}

type NUMATuneData

type NUMATuneData struct {
	NUMACells string
	MemNodes  string
	MemMode   string
}

type PassthroughData

type PassthroughData struct {
	HostNicBus       string
	HostNicSlot      string
	HostNicFunction  string
	GuestNicDomain   string
	GuestNicBus      string
	GuestNicSlot     string
	GuestNicFunction string
}

type VirtNetwork

type VirtNetwork struct {
	NetworkName      string
	Driver           string
	GuestNicDomain   string
	GuestNicBus      string
	GuestNicSlot     string
	GuestNicFunction string
}

Jump to

Keyboard shortcuts

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