Documentation ¶
Index ¶
- Constants
- type KvmtoolContext
- func (kc *KvmtoolContext) AddDisk(ctx *hypervisor.VmContext, sourceType string, ...)
- func (kc *KvmtoolContext) AddMem(ctx *hypervisor.VmContext, slot, size int) error
- func (kc *KvmtoolContext) AddNic(ctx *hypervisor.VmContext, host *hypervisor.HostNicInfo, ...)
- func (kc *KvmtoolContext) Associate(ctx *hypervisor.VmContext)
- func (kc *KvmtoolContext) Close()
- func (kc *KvmtoolContext) ConnectConsole(console chan<- string) error
- func (kc *KvmtoolContext) Dump() (map[string]interface{}, error)
- func (kc *KvmtoolContext) Kill(ctx *hypervisor.VmContext)
- func (kc *KvmtoolContext) Launch(ctx *hypervisor.VmContext)
- func (kc *KvmtoolContext) Pause(ctx *hypervisor.VmContext, pause bool) error
- func (kc *KvmtoolContext) RemoveDisk(ctx *hypervisor.VmContext, blockInfo *hypervisor.DiskDescriptor, ...)
- func (kc *KvmtoolContext) RemoveNic(ctx *hypervisor.VmContext, n *hypervisor.InterfaceCreated, ...)
- func (kc *KvmtoolContext) Save(ctx *hypervisor.VmContext, path string) error
- func (kc *KvmtoolContext) SetCpus(ctx *hypervisor.VmContext, cpus int) error
- func (kc *KvmtoolContext) Shutdown(ctx *hypervisor.VmContext)
- func (kc *KvmtoolContext) Stats(ctx *hypervisor.VmContext) (*types.PodStats, error)
- type KvmtoolDriver
- func (kd *KvmtoolDriver) InitContext(homeDir string) hypervisor.DriverContext
- func (kd *KvmtoolDriver) LoadContext(persisted map[string]interface{}) (hypervisor.DriverContext, error)
- func (kd *KvmtoolDriver) Name() string
- func (kd *KvmtoolDriver) SupportLazyMode() bool
- func (kd *KvmtoolDriver) SupportVmSocket() bool
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
Click to show internal directories.
Click to hide internal directories.