Documentation
¶
Index ¶
- type CloudHypervisorVM
- func (u *CloudHypervisorVM) GetPID(vmSocketPath string) (uint32, error)
- func (u *CloudHypervisorVM) Pause(vmSocketPath string) error
- func (u *CloudHypervisorVM) Restore(snapshotPath, vmSocketPath string, netConfigs []*daemon.RestoredNetConfig) error
- func (u *CloudHypervisorVM) Resume(vmSocketPath string) error
- func (u *CloudHypervisorVM) Snapshot(destinationURL, vmSocketPath, vmID string) error
- type RestoreConfig
- type RestoredNetConfig
- type SnapshotRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudHypervisorVM ¶
type CloudHypervisorVM struct {
// contains filtered or unexported fields
}
func NewUnixSocketVMSnapshot ¶
func NewUnixSocketVMSnapshot(socketPath string) *CloudHypervisorVM
NewUnixSocketVMSnapshot creates a new UnixSocketVMSnapshot with the given socket path
func (*CloudHypervisorVM) GetPID ¶
func (u *CloudHypervisorVM) GetPID(vmSocketPath string) (uint32, error)
func (*CloudHypervisorVM) Pause ¶
func (u *CloudHypervisorVM) Pause(vmSocketPath string) error
func (*CloudHypervisorVM) Restore ¶
func (u *CloudHypervisorVM) Restore(snapshotPath, vmSocketPath string, netConfigs []*daemon.RestoredNetConfig) error
func (*CloudHypervisorVM) Resume ¶
func (u *CloudHypervisorVM) Resume(vmSocketPath string) error
Resume implements the Resume method of the VMSnapshot interface
func (*CloudHypervisorVM) Snapshot ¶
func (u *CloudHypervisorVM) Snapshot(destinationURL, vmSocketPath, vmID string) error
type RestoreConfig ¶
type RestoreConfig struct {
SourceURL string `json:"source_url"`
Prefault bool `json:"prefault"`
NetFDs []RestoredNetConfig `json:"net_fds,omitempty"`
}
type RestoredNetConfig ¶
type SnapshotRequest ¶
type SnapshotRequest struct {
DestinationURL string `json:"destination_url"`
}
Click to show internal directories.
Click to hide internal directories.