Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSnapshot(client *http.Client, statePath, memoryPath string) error
- func FlushSnapshot(client *http.Client, statePath string) error
- func ResumeSnapshot(client *http.Client, statePath, memoryPath string) error
- func StartVM(client *http.Client, initramfsPath string, kernelPath string, diskPath string, ...) error
- func StopVM(client *http.Client) error
- type Server
Constants ¶
View Source
const (
FirecrackerSocketName = "firecracker.sock"
)
Variables ¶
View Source
var ( ErrCouldNotSetBootSource = errors.New("could not set boot source") ErrCouldNotSetDrive = errors.New("could not set drive") ErrCouldNotSetMachineConfig = errors.New("could not set machine config") ErrCouldNotSetVSock = errors.New("could not set vsock") ErrCouldNotSetNetworkInterfaces = errors.New("could not set network interfaces") ErrCouldNotStartInstance = errors.New("could not start instance") ErrCouldNotStopInstance = errors.New("could not stop instance") ErrCouldNotPauseInstance = errors.New("could not pause instance") ErrCouldNotCreateSnapshot = errors.New("could not create snapshot") ErrCouldNotResumeSnapshot = errors.New("could not resume snapshot") ErrCouldNotFlushSnapshot = errors.New("could not flush snapshot") )
View Source
var (
ErrNoSocketCreated = errors.New("no socket created")
)
Functions ¶
func CreateSnapshot ¶
func ResumeSnapshot ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.