cloudinit/vendor/github.com/sigma/vmw-guestinfo/vmcheck/vmcheck.go
Vasiliy Tolstov 414957d985 fix build
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-11-09 09:08:44 +00:00

16 lines
360 B
Go

package vmcheck
import (
"github.com/sigma/vmw-guestinfo/bridge"
)
// 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()
}