multipass

package
v0.0.0-...-dd87fee Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteInstance

func DeleteInstance(name string) error

func Exec

func Exec(name string, command string) (string, error)

func LaunchInstance

func LaunchInstance(config InstanceConfig, cloudinit string) error

func Purge

func Purge() error

func Transfer

func Transfer(name string, from string, to string) error

Types

type Instance

type Instance struct {
	Name    string   `json:"name"`
	State   string   `json:"state"`
	Ipv4    []string `json:"ipv4"`
	Release string   `json:"release"`
}

func GetInstance

func GetInstance(name string) (*Instance, error)

type InstanceConfig

type InstanceConfig struct {
	Name   string
	CPUs   string
	Memory string
	Disk   string
	Image  string
}

type Instances

type Instances struct {
	List []Instance `json:"list"`
}

func ListInstances

func ListInstances() (*Instances, error)

Jump to

Keyboard shortcuts

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