Documentation ¶
Index ¶
- type Pool
- func (p *Pool) CloseMonitor(vmname string)
- func (p *Pool) Exists(vmname string) bool
- func (p *Pool) FindBlockJobCompletedEvent(vmname, device string, after uint64) (*qmp.Event, bool, error)
- func (p *Pool) FindBlockJobErrorEvent(vmname, device string, after uint64) (*qmp.Event, bool, error)
- func (p *Pool) FindEvents(vmname string, t string, after uint64) ([]qmp.Event, bool, error)
- func (p *Pool) Get(vmname string) (*qmp.Monitor, bool)
- func (p *Pool) GetEvents(vmname string, ctx context.Context, t string, after uint64) ([]qmp.Event, error)
- func (p *Pool) NewMonitor(vmname string) (*qmp.Monitor, error)
- func (p *Pool) Run(vmname string, cmd interface{}, res interface{}) error
- func (p *Pool) RunTransaction(vmname string, cmds []qmp.Command, res interface{}) error
- func (p *Pool) WaitDeviceDeletedEvent(vmname string, ctx context.Context, device string, after uint64) (*qmp.Event, error)
- func (p *Pool) WaitJobStatusChangeEvent(vmname string, ctx context.Context, jobID, status string, after uint64) (*qmp.Event, error)
- func (p *Pool) WaitMachineResumeStateEvent(vmname string, ctx context.Context, after uint64) (*qmp.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool represents a pool of QMPConn objects accessed by virtual machine name
func (*Pool) CloseMonitor ¶
func (*Pool) FindBlockJobCompletedEvent ¶
func (*Pool) FindBlockJobErrorEvent ¶
func (*Pool) FindEvents ¶
func (*Pool) RunTransaction ¶
func (*Pool) WaitDeviceDeletedEvent ¶
func (*Pool) WaitJobStatusChangeEvent ¶
Click to show internal directories.
Click to hide internal directories.