cloudinit/vendor/github.com/sigma/vmw-guestinfo/vmcheck/vmcheck.go

16 lines
360 B
Go
Raw Permalink Normal View History

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()
}