Versions in this module Expand all Collapse all v1 v1.0.0 Sep 9, 2017 Changes in this version + const ConsoleTypePV + const ConsoleTypeSerial + const ConsoleTypeUnknown + const DomainTypeHvm + const DomainTypeInvalid + const DomainTypePv + const ErrorAborted + const ErrorBadfail + const ErrorBufferfull + const ErrorCheckpointDeviceNotSupported + const ErrorCheckpointDevopsDoesNotMatch + const ErrorDeviceExists + const ErrorDomainDestroyed + const ErrorDomainNotfound + const ErrorFail + const ErrorFeatureRemoved + const ErrorGuestTimedout + const ErrorInval + const ErrorJsonConfigEmpty + const ErrorLockFail + const ErrorNi + const ErrorNomem + const ErrorNonspecific + const ErrorNoparavirt + const ErrorNotReady + const ErrorNotfound + const ErrorOseventRegFail + const ErrorTimedout + const ErrorUnknownChild + const ErrorVersion + const ErrorVnumaConfigInvalid + const ShutdownReasonCrash + const ShutdownReasonPoweroff + const ShutdownReasonReboot + const ShutdownReasonSoftReset + const ShutdownReasonSuspend + const ShutdownReasonUnknown + const ShutdownReasonWatchdog + type Bitmap struct + func (a Bitmap) And(b Bitmap) (c Bitmap) + func (bm *Bitmap) Clear(bit int) + func (bm *Bitmap) ClearRange(start int, end int) + func (bm *Bitmap) IsEmpty() bool + func (bm *Bitmap) Max() int + func (bm *Bitmap) Set(bit int) + func (bm *Bitmap) SetRange(start int, end int) + func (bm *Bitmap) Test(bit int) bool + func (bm Bitmap) String() (s string) + type ConsoleType int + func (ct ConsoleType) String() (str string) + type Context struct + var Ctx Context + func (Ctx *Context) CheckOpen() (err error) + func (Ctx *Context) Close() (err error) + func (Ctx *Context) ConsoleGetTty(id Domid, consNum int, conType ConsoleType) (path string, err error) + func (Ctx *Context) CpupoolCpuadd(Poolid uint32, Cpu int) (err error) + func (Ctx *Context) CpupoolCpuaddCpumap(Poolid uint32, Cpumap Bitmap) (err error) + func (Ctx *Context) CpupoolCpuaddNode(Poolid uint32, Node int) (Cpus int, err error) + func (Ctx *Context) CpupoolCpuremove(Poolid uint32, Cpu int) (err error) + func (Ctx *Context) CpupoolCpuremoveCpumap(Poolid uint32, Cpumap Bitmap) (err error) + func (Ctx *Context) CpupoolCpuremoveNode(Poolid uint32, Node int) (Cpus int, err error) + func (Ctx *Context) CpupoolCreate(Name string, Scheduler Scheduler, Cpumap Bitmap) (err error, Poolid uint32) + func (Ctx *Context) CpupoolDestroy(Poolid uint32) (err error) + func (Ctx *Context) CpupoolFindByName(name string) (info CpupoolInfo, found bool) + func (Ctx *Context) CpupoolInfo(Poolid uint32) (pool CpupoolInfo) + func (Ctx *Context) CpupoolMakeFree(Cpumap Bitmap) (err error) + func (Ctx *Context) CpupoolMovedomain(Poolid uint32, Id Domid) (err error) + func (Ctx *Context) CpupoolRename(Name string, Poolid uint32) (err error) + func (Ctx *Context) DomainInfo(Id Domid) (di *Dominfo, err error) + func (Ctx *Context) DomainPause(id Domid) (err error) + func (Ctx *Context) DomainReboot(id Domid) (err error) + func (Ctx *Context) DomainShutdown(id Domid) (err error) + func (Ctx *Context) DomainUnpause(Id Domid) (err error) + func (Ctx *Context) GetFreeMemory() (memkb uint64, err error) + func (Ctx *Context) GetMaxCpus() (maxCpus int, err error) + func (Ctx *Context) GetMaxNodes() (maxNodes int, err error) + func (Ctx *Context) GetOnlineCpus() (onCpus int, err error) + func (Ctx *Context) GetPhysinfo() (physinfo *Physinfo, err error) + func (Ctx *Context) GetVersionInfo() (info *VersionInfo, err error) + func (Ctx *Context) IsOpen() bool + func (Ctx *Context) ListCpupool() (list []CpupoolInfo) + func (Ctx *Context) ListDomain() (glist []Dominfo) + func (Ctx *Context) ListVcpu(id Domid) (glist []Vcpuinfo) + func (Ctx *Context) Open() (err error) + func (Ctx *Context) PrimaryConsoleGetTty(domid uint32) (path string, err error) + type CpupoolInfo struct + Cpumap Bitmap + DomainCount int + PoolName string + Poolid uint32 + Scheduler Scheduler + type DomainType int32 + func (dt DomainType) String() (str string) + type Domid uint32 + type Dominfo struct + Blocked bool + CpuTime time.Duration + Cpupool uint32 + CurrentMemkb MemKB + DomainType int32 + Domid Domid + Dying bool + MaxMemkb MemKB + NeverStop bool + OutstandingMemkb MemKB + PagedMemkb MemKB + Paused bool + Running bool + SharedMemkb MemKB + Shutdown bool + ShutdownReason int32 + SsidLabel string + Ssidref uint32 + Uuid Uuid + VcpuMaxId uint32 + VcpuOnline uint32 + type Error int + func (e Error) Error() string + type Hwcap []C.uint32_t + type MemKB uint64 + type Physinfo struct + CapHvm bool + CapHvmDirectio bool + CoresPerSocket uint32 + CpuKhz uint32 + FreePages uint64 + HwCap Hwcap + MaxCpuId uint32 + NrCpus uint32 + NrNodes uint32 + OutstandingPages uint64 + ScrubPages uint64 + SharingFreedPages uint64 + SharingUsedFrames uint64 + ThreadsPerCore uint32 + TotalPages uint64 + type Scheduler int + var SchedulerArinc653 Scheduler = C.LIBXL_SCHEDULER_ARINC653 + var SchedulerCredit Scheduler = C.LIBXL_SCHEDULER_CREDIT + var SchedulerCredit2 Scheduler = C.LIBXL_SCHEDULER_CREDIT2 + var SchedulerRTDS Scheduler = C.LIBXL_SCHEDULER_RTDS + var SchedulerSedf Scheduler = C.LIBXL_SCHEDULER_SEDF + var SchedulerUnknown Scheduler = C.LIBXL_SCHEDULER_UNKNOWN + func SchedulerFromString(name string) (s Scheduler, err error) + func (s *Scheduler) FromString(gstr string) (err error) + func (s Scheduler) String() string + type ShutdownReason int32 + func (sr ShutdownReason) String() (str string) + type Uuid C.libxl_uuid + type Vcpuinfo struct + Blocked bool + Cpu uint32 + Cpumap Bitmap + CpumapSoft Bitmap + Online bool + Running bool + VCpuTime time.Duration + Vcpuid uint32 + type VersionInfo struct + BuildId string + Capabilities string + Changeset string + Commandline string + CompileBy string + CompileDate string + CompileDomain string + Compiler string + Pagesize int + VirtStart uint64 + XenVersionExtra string + XenVersionMajor int + XenVersionMinor int