Documentation ¶
Index ¶
- Variables
- func CmdLineVolumesToMounts(volumes []string, volumeType vmconfigs.VolumeMountType) []*vmconfigs.Mount
- func Init(opts machineDefine.InitOptions, mp vmconfigs.VMProvider) error
- func List(vmstubbers []vmconfigs.VMProvider, _ machine.ListOptions) ([]*machine.ListResponse, error)
- func Remove(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, ...) error
- func Reset(dirs *machineDefine.MachineDirs, mp vmconfigs.VMProvider, ...) error
- func Set(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, ...) error
- func Start(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, ...) error
- func Stop(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, ...) error
- func VMExists(name string, vmstubbers []vmconfigs.VMProvider) (*vmconfigs.MachineConfig, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotRunning = errors.New("machine not in running state") ErrSSHNotListening = errors.New("machine is not listening on ssh port") )
Functions ¶
func CmdLineVolumesToMounts ¶
func CmdLineVolumesToMounts(volumes []string, volumeType vmconfigs.VolumeMountType) []*vmconfigs.Mount
func Init ¶
func Init(opts machineDefine.InitOptions, mp vmconfigs.VMProvider) error
func List ¶
func List(vmstubbers []vmconfigs.VMProvider, _ machine.ListOptions) ([]*machine.ListResponse, error)
List is done at the host level to allow for a *possible* future where more than one provider is used
func Remove ¶
func Remove(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *machineDefine.MachineDirs, opts machine.RemoveOptions) error
func Reset ¶
func Reset(dirs *machineDefine.MachineDirs, mp vmconfigs.VMProvider, mcs map[string]*vmconfigs.MachineConfig) error
func Set ¶
func Set(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, opts machineDefine.SetOptions) error
func Start ¶
func Start(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *machineDefine.MachineDirs, opts machine.StartOptions) error
func Stop ¶
func Stop(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *machineDefine.MachineDirs, hardStop bool) error
Stop stops the machine as well as supporting binaries/processes
func VMExists ¶
func VMExists(name string, vmstubbers []vmconfigs.VMProvider) (*vmconfigs.MachineConfig, bool, error)
VMExists looks across given providers for a machine's existence. returns the actual config and found bool
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.