2015-05-15 03:42:11 +03:00
|
|
|
package vmcheck
|
|
|
|
|
|
|
|
import (
|
2015-11-09 12:08:44 +03:00
|
|
|
"github.com/sigma/vmw-guestinfo/bridge"
|
2015-05-15 03:42:11 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// IsVirtualWorld returns whether the code is running in a VMware virtual machine or no
|
|
|
|
func IsVirtualWorld() bool {
|
|
|
|
return bridge.VMCheckIsVirtualWorld()
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetVersion returns the hypervisor version
|
|
|
|
func GetVersion() (version uint32, typ uint32) {
|
|
|
|
return bridge.VMCheckGetVersion()
|
|
|
|
}
|