vm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Multipass = "multipass"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name   string
	CPUs   int64
	Memory string
	Disk   string
}

type VM

type VM interface {
	Create(name string, config *Config) error
	Mount(name string, src string, vmName string, dst string) error
	Unmount(name string, dst string) error
	Start(name string) error
	Stop(name string) error
	Delete(name string) error
	List() ([]string, error)
	IsRunning(name string) (bool, error)
	IsExist(name string) (bool, error)
	InstanceOf() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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