rpccommon

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMigrationError

func IsMigrationError(err error) bool

func NewMigrationError

func NewMigrationError(format string, a ...interface{}) error

func TlsConfig

func TlsConfig(certFile, keyFile string) (*tls.Config, error)

Types

type BriefRequest

type BriefRequest struct {
	Names []string
}

type CPUCountParams

type CPUCountParams struct {
	Actual int
	Total  int
}

type ChannelParams

type ChannelParams struct {
	ID   string
	Name string
}

type CheckDisksRequest

type CheckDisksRequest struct {
	Disks map[string]uint64
}

type CreateDisksRequest

type CreateDisksRequest struct {
	Disks     map[string]uint64
	DstServer string
}

type DiskCopyingParams

type DiskCopyingParams struct {
	SrcName     string
	TargetURI   string
	Incremental bool
	ClearBitmap bool
}

type DiskJobIDRequest

type DiskJobIDRequest struct {
	JobID string
}

type DiskJobStat

type DiskJobStat struct {
	Status  string
	QemuJob *StatInfo
	Desc    string
}

type DiskParams

type DiskParams struct {
	Path   string
	Driver string
	IopsRd int
	IopsWr int
	Index  int
}

type InstanceRequest

type InstanceRequest struct {
	Name    string
	Live    bool
	Data    interface{}
	DataRaw json.RawMessage
	VM      *kvmrun.VirtMachine
}

type KernelParams

type KernelParams struct {
	Image      string
	Initrd     string
	Cmdline    string
	Modiso     string
	RemoveConf bool
}

type MemLimitsParams

type MemLimitsParams struct {
	Actual int
	Total  int
}

type MigrationError

type MigrationError struct {
	Err error
}

func (*MigrationError) Error

func (e *MigrationError) Error() string

type MigrationOverrides

type MigrationOverrides struct {
	Disks map[string]string
}

type MigrationParams

type MigrationParams struct {
	DstServer string
	Disks     []string
	Overrides MigrationOverrides
}

type MigrationStat

type MigrationStat struct {
	DstServer string
	Status    string
	Qemu      *StatInfo
	Disks     map[string]*StatInfo
	Desc      string
}

type NBDParams

type NBDParams struct {
	ListenAddr string
	Disks      []string
}

type NetifParams

type NetifParams struct {
	Ifname string
	Driver string
	HwAddr string
	Ifup   string
	Ifdown string
}

type NewInstanceRequest

type NewInstanceRequest struct {
	Name       string
	MemTotal   int
	MemActual  int
	CPUTotal   int
	CPUActual  int
	CPUModel   string
	CPUQuota   int
	Launcher   string
	Finisher   string
	ExtraFiles map[string][]byte
}

type NewManifestInstanceRequest

type NewManifestInstanceRequest struct {
	Name       string
	Manifest   []byte
	Launcher   string
	Finisher   string
	ExtraFiles map[string][]byte
}

type QemuInitRequest

type QemuInitRequest struct {
	Name      string
	Pid       int
	MemActual uint64
}

type StatInfo

type StatInfo struct {
	Total       uint64 `json:"total"`
	Remaining   uint64 `json:"remaining"`
	Transferred uint64 `json:"transferred"`
	Percent     uint   `json:"percent"`
	Speed       uint   `json:"speed"`
}

type VMNameRequest

type VMNameRequest struct {
	Name string
}

type VMSummary

type VMSummary struct {
	Name      string
	Pid       int
	MemActual int
	MemTotal  int
	CPUActual int
	CPUTotal  int
	CPUQuota  int
	State     string
	HasError  bool
	NotFound  bool
	LifeTime  time.Duration
}

type VNCParams

type VNCParams struct {
	Password string
}

type VNCRequisites

type VNCRequisites struct {
	Password string `json:"password"`
	Display  int    `json:"display"`
	Port     int    `json:"port"`
	WSPort   int    `json:"websock_port"`
}

Jump to

Keyboard shortcuts

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