kvmtool

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2017 License: Apache-2.0 Imports: 20 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	KVMTOOL_EXEC = "lkvm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KvmtoolContext

type KvmtoolContext struct {
	// contains filtered or unexported fields
}

implement the hypervisor.DriverContext interface

func (*KvmtoolContext) AddDisk

func (kc *KvmtoolContext) AddDisk(ctx *hypervisor.VmContext, sourceType string, blockInfo *hypervisor.DiskDescriptor, result chan<- hypervisor.VmEvent)

func (*KvmtoolContext) AddMem

func (kc *KvmtoolContext) AddMem(ctx *hypervisor.VmContext, slot, size int) error

func (*KvmtoolContext) AddNic

func (kc *KvmtoolContext) AddNic(ctx *hypervisor.VmContext, host *hypervisor.HostNicInfo, guest *hypervisor.GuestNicInfo, result chan<- hypervisor.VmEvent)

func (*KvmtoolContext) Associate

func (kc *KvmtoolContext) Associate(ctx *hypervisor.VmContext)

func (*KvmtoolContext) Close

func (kc *KvmtoolContext) Close()

func (*KvmtoolContext) ConfigureNetwork

func (kc *KvmtoolContext) ConfigureNetwork(config *api.InterfaceDescription) (*network.Settings, error)

func (*KvmtoolContext) Dump

func (kc *KvmtoolContext) Dump() (map[string]interface{}, error)

func (*KvmtoolContext) Kill

func (kc *KvmtoolContext) Kill(ctx *hypervisor.VmContext)

func (*KvmtoolContext) Launch

func (kc *KvmtoolContext) Launch(ctx *hypervisor.VmContext)

func (*KvmtoolContext) Pause

func (kc *KvmtoolContext) Pause(ctx *hypervisor.VmContext, pause bool) error

func (*KvmtoolContext) ReleaseNetwork

func (kc *KvmtoolContext) ReleaseNetwork(releasedIP string) error

func (*KvmtoolContext) RemoveDisk

func (kc *KvmtoolContext) RemoveDisk(ctx *hypervisor.VmContext, blockInfo *hypervisor.DiskDescriptor, callback hypervisor.VmEvent, result chan<- hypervisor.VmEvent)

func (*KvmtoolContext) RemoveNic

func (kc *KvmtoolContext) RemoveNic(ctx *hypervisor.VmContext, n *hypervisor.InterfaceCreated, callback hypervisor.VmEvent, result chan<- hypervisor.VmEvent)

func (*KvmtoolContext) Save

func (kc *KvmtoolContext) Save(ctx *hypervisor.VmContext, path string) error

func (*KvmtoolContext) SetCpus

func (kc *KvmtoolContext) SetCpus(ctx *hypervisor.VmContext, cpus int) error

func (*KvmtoolContext) Shutdown

func (kc *KvmtoolContext) Shutdown(ctx *hypervisor.VmContext)

func (*KvmtoolContext) Stats

func (kc *KvmtoolContext) Stats(ctx *hypervisor.VmContext) (*types.PodStats, error)

type KvmtoolDriver

type KvmtoolDriver struct {
	// contains filtered or unexported fields
}

implement the hypervisor.HypervisorDriver interface

func InitDriver

func InitDriver() *KvmtoolDriver

func (*KvmtoolDriver) BuildinNetwork

func (kd *KvmtoolDriver) BuildinNetwork() bool

func (*KvmtoolDriver) InitContext

func (kd *KvmtoolDriver) InitContext(homeDir string) hypervisor.DriverContext

func (*KvmtoolDriver) InitNetwork

func (kd *KvmtoolDriver) InitNetwork(bIface, bIP string, disableIptables bool) error

func (*KvmtoolDriver) LoadContext

func (kd *KvmtoolDriver) LoadContext(persisted map[string]interface{}) (hypervisor.DriverContext, error)

func (*KvmtoolDriver) Name

func (kd *KvmtoolDriver) Name() string

func (*KvmtoolDriver) SupportLazyMode

func (kd *KvmtoolDriver) SupportLazyMode() bool

func (*KvmtoolDriver) SupportVmSocket

func (kd *KvmtoolDriver) SupportVmSocket() bool

Jump to

Keyboard shortcuts

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