vm

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Cwd      string    // current working dir
	Image    string    // the image name you want to run
	Commands *[]string // the COMMAND for image
}

type State

type State = string
const (
	StateInit     State = "init"
	StateStarting State = "starting"
	StateStarted  State = "started"
	StateDestroy  State = "destroy"
)

type VirtualMachine

type VirtualMachine struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewVirtualMachine

func NewVirtualMachine(option *Options) (*VirtualMachine, error)

func (*VirtualMachine) Attach

func (v *VirtualMachine) Attach() error

wait machine ready

func (*VirtualMachine) Destroy

func (v *VirtualMachine) Destroy() error

wait machine ready

func (*VirtualMachine) Log

func (v *VirtualMachine) Log() error

wait machine ready

func (*VirtualMachine) Start

func (v *VirtualMachine) Start() error

func (*VirtualMachine) Wait

func (v *VirtualMachine) Wait() error

wait machine ready

Jump to

Keyboard shortcuts

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