15
vendor/github.com/sigma/vmw-guestinfo/vmcheck/vmcheck.go
generated
vendored
Normal file
15
vendor/github.com/sigma/vmw-guestinfo/vmcheck/vmcheck.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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()
|
||||
}
|
Reference in New Issue
Block a user