kvmtool

package
v0.0.0-...-1e561f4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

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) ConnectConsole

func (kc *KvmtoolContext) ConnectConsole(console chan<- string) 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) 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) InitContext

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

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