multipass

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

README

Multipass commands package

Wraps the Multipass CLI commands

Used by the DevPod commands package.

Documentation

Index

Constants

View Source
const (
	STATE_RUNNING          = "Running"
	STATE_STOPPED          = "Stopped"
	STATE_DELETED          = "Deleted"
	STATE_STARTING         = "Starting"
	STATE_RESTARTING       = "Restarting"
	STATE_DELAYED_SHUTDOWN = "Delayed Shutdown"
	STATE_SUSPENDING       = "Suspending"
	STATE_SUSPENDED        = "Suspended"
	STATE_UNKNOWN          = "Unknown"
)
View Source
const (
	CPUS   = "cpus"
	DISK   = "disk"
	MEMORY = "memory"
)

Variables

This section is empty.

Functions

func IsInstanceNotFound added in v0.0.13

func IsInstanceNotFound(err error) bool

func NewClient

func NewClient(executablePath string) (*client, error)

func SetLaunchCloudInit added in v0.0.3

func SetLaunchCloudInit(cloudInit string) argSetter

func SetLaunchCpus added in v0.0.3

func SetLaunchCpus(cpus int) argSetter

func SetLaunchDisk added in v0.0.3

func SetLaunchDisk(disk string) argSetter

func SetLaunchImage added in v0.0.3

func SetLaunchImage(image string) argSetter

func SetLaunchMemory added in v0.0.3

func SetLaunchMemory(memory string) argSetter

func SetLaunchName added in v0.0.3

func SetLaunchName(name string) argSetter

func SetMounts added in v0.0.7

func SetMounts(mounts []MountArg) argSetter

Types

type InstanceNotFound

type InstanceNotFound struct {
	// contains filtered or unexported fields
}

func (*InstanceNotFound) Error

func (i *InstanceNotFound) Error() string

type MountArg added in v0.0.5

type MountArg struct {
	Source string
	Target string
}

Jump to

Keyboard shortcuts

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