Documentation ¶
Index ¶
- func CheckExclusiveActiveVM(provider vmconfigs.VMProvider, mc *vmconfigs.MachineConfig) error
- func CmdLineVolumesToMounts(volumes []string, volumeType vmconfigs.VolumeMountType) []*vmconfigs.Mount
- func Info()
- func Init(opts machineDefine.InitOptions, mp vmconfigs.VMProvider) (*vmconfigs.MachineConfig, error)
- func List(vmstubbers []vmconfigs.VMProvider, opts machine.ListOptions) ([]*machine.ListResponse, error)
- func OSApply()
- func SSH()
- 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 ¶
This section is empty.
Functions ¶
func CheckExclusiveActiveVM ¶
func CheckExclusiveActiveVM(provider vmconfigs.VMProvider, mc *vmconfigs.MachineConfig) error
CheckExclusiveActiveVM checks if any of the machines are already running
func CmdLineVolumesToMounts ¶
func CmdLineVolumesToMounts(volumes []string, volumeType vmconfigs.VolumeMountType) []*vmconfigs.Mount
func Init ¶
func Init(opts machineDefine.InitOptions, mp vmconfigs.VMProvider) (*vmconfigs.MachineConfig, error)
func List ¶
func List(vmstubbers []vmconfigs.VMProvider, opts 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 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 TODO: I think this probably needs to go somewhere that remove can call it.
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.
Click to show internal directories.
Click to hide internal directories.