virt

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	Detected bool            `json:"detected"`
	Name     string          `json:"name"`
	Results  map[string]bool `json:"results"`
	// contains filtered or unexported fields
}

Probe struct for virt.

func New

func New() (*Probe, error)

New initializes new probe struct and probes the system.

func (*Probe) Bhyve

func (p *Probe) Bhyve() bool

Bhyve detect if a system is on bhyve hypervisor.

func (*Probe) Hyperv

func (p *Probe) Hyperv() bool

Hyperv detects if a system is on Hyper-V hypervisor.

func (*Probe) JSON

func (p *Probe) JSON() string

JSON representation of the struct.

func (*Probe) KVM

func (p *Probe) KVM() bool

KVM detects if a system is on KVM hypervisor.

func (*Probe) Parallels

func (p *Probe) Parallels() bool

Parallels detects if a system is on Parallels hypervisor.

func (*Probe) QEMU

func (p *Probe) QEMU() bool

QEMU detects if a system is on QEMU hypervisor.

func (*Probe) String

func (p *Probe) String() string

String representation of the struct.

func (*Probe) VMware

func (p *Probe) VMware() bool

VMware detects if a system is on VMware hypervisor. TODO: there may be additional scenarios that need to be tested for given the large number of VMware products.

func (*Probe) VirtualBox

func (p *Probe) VirtualBox() bool

VirtualBox detects if a system is on VirtualBox hypervisor. TODO: not implemented yet.

func (*Probe) Xen

func (p *Probe) Xen() bool

Xen detects if a system is on Xen hypervisor. TODO: There are a number of other scenarios that need to be covered. This currently only covers on of the most basic ones.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL