Documentation ¶
Rendered for darwin/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VZMachineState ¶
type VZMachineState string
VZMachineState is what the restful service in vfkit will return
const ( // Values that the machine can be in // "VirtualMachineStateStoppedVirtualMachineStateRunningVirtualMachineStatePausedVirtualMachineStateErrorVirtualMachineStateStartingVirtualMachineStatePausingVirtualMachineStateResumingVirtualMachineStateStopping" VZMachineStateStopped VZMachineState = "VirtualMachineStateStopped" VZMachineStateRunning VZMachineState = "VirtualMachineStateRunning" VZMachineStatePaused VZMachineState = "VirtualMachineStatePaused" VZMachineStateError VZMachineState = "VirtualMachineStateError" VZMachineStateStarting VZMachineState = "VirtualMachineStateStarting" VZMachineStatePausing VZMachineState = "VirtualMachineStatePausing" VZMachineStateResuming VZMachineState = "VirtualMachineStateResuming" VZMachineStateStopping VZMachineState = "VirtualMachineStateStopping" )
type VfkitHelper ¶
type VfkitHelper struct { LogLevel logrus.Level Endpoint string VfkitBinaryPath *define.VMFile VirtualMachine *config.VirtualMachine }
VfkitHelper describes the use of vfkit: cmdline and endpoint
func (*VfkitHelper) State ¶
func (vf *VfkitHelper) State() (define.Status, error)
state asks vfkit for the virtual machine state. in case the vfkit service is not responding, we assume the service is not running and return a stopped status
func (*VfkitHelper) Stop ¶
func (vf *VfkitHelper) Stop(force, wait bool) error
Click to show internal directories.
Click to hide internal directories.