vms

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit added in v0.84.0

func Commit(vmName, imageName string, override bool) error

func CopyFiles

func CopyFiles(src string, dest string) error

func Create

func Create(imageName string, ps ProvisionScript, cpus int, mem int) (string, error)

func Exec added in v0.65.0

func Exec(vmName string, cmd string) error

func GUI added in v0.82.0

func GUI(vmName string) error

func IP

func IP(vmName string, purge bool, global bool) (string, error)

func List

func List(all bool) ([]string, error)

List return all vms that start with db.VMNamePrefix

func Modify added in v0.77.0

func Modify(vmName string, cpus int, mem int) error

func Mount added in v0.54.0

func Mount(vmName string, hostPath string) error

func PortForward

func PortForward(vmName string, ports string) error

func Ps

func Ps(all bool, f []string) (string, error)

func Remove

func Remove(vmName string, force bool) error

func SecureShell

func SecureShell(vmName string) error

func Start

func Start(vmName string) error

func Stop

func Stop(vmName string) error

func Tag

func Tag(vmName string, tag string, remove bool) error

Types

type ProvisionScript added in v0.88.0

type ProvisionScript struct {
	Script string
	Func   provisioners.Func
}

Jump to

Keyboard shortcuts

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