clh

package
v0.9.280 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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 RestoredNetConfig struct {
	ID     string  `json:"id"`
	NumFDs int64   `json:"num_fds"`
	Fds    []int64 `json:"fds,omitempty"`
}

type SnapshotRequest

type SnapshotRequest struct {
	DestinationURL string `json:"destination_url"`
}

Jump to

Keyboard shortcuts

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