Documentation ¶
Overview ¶
Package vm contains logic relevant to VMs used during an experiment.
Index ¶
- func MergeSettings(baseSettings, runSettings interface{})
- type VM
- func (v *VM) CopyFilesFromVM(ctx context.Context, src, dest string) error
- func (v *VM) CopyFilesToVM(ctx context.Context, src, dest string) error
- func (v *VM) CreateWithDisk(ctx context.Context) error
- func (v *VM) Delete(ctx context.Context, dryRun bool) (string, error)
- func (v *VM) ImageDisk(ctx context.Context) error
- func (v *VM) IsVM() bool
- func (v *VM) IsWS() bool
- func (v *VM) Mount(ctx context.Context) error
- func (v *VM) Name() string
- func (v *VM) RunCommand(ctx context.Context, cmd *epb.Command) (string, error)
- func (v *VM) Sudo(cmd string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeSettings ¶
func MergeSettings(baseSettings, runSettings interface{})
MergeSettings merges "run" settings into "base" settings
Types ¶
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
VM is a struct holding information about an experiment VM.
func NewMachine ¶
NewMachine prepares the machine for connection
func (*VM) CopyFilesFromVM ¶
CopyFilesFromVM copies files from the VM to the local machine.
func (*VM) CopyFilesToVM ¶
CopyFilesToVM copies files from the local machine to the VM.
func (*VM) CreateWithDisk ¶
CreateWithDisk creates the VM and attaches an image disk to it.
func (*VM) Delete ¶
Delete deletes the VM image. If dryRun, it just returns the command that will delete the VM.
func (*VM) RunCommand ¶
RunCommand runs a command on the VM.
Click to show internal directories.
Click to hide internal directories.