Documentation ¶
Index ¶
- type Probe
- func (p *Probe) AWS() bool
- func (p *Probe) Alibaba() bool
- func (p *Probe) Azure() bool
- func (p *Probe) CloudSigma() bool
- func (p *Probe) CloudStack() bool
- func (p *Probe) DigitalOcean() bool
- func (p *Probe) Exoscale() bool
- func (p *Probe) GCP() bool
- func (p *Probe) Hetzner() bool
- func (p *Probe) JSON() string
- func (p *Probe) OpenStack() bool
- func (p *Probe) Oracle() bool
- func (p *Probe) SmartOS() bool
- func (p *Probe) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct { Name string `json:"name"` Detected bool `json:"detected"` Results map[string]bool `json:"results"` // contains filtered or unexported fields }
Probe struct for clouds. Used to store the results of the probe and the name of the cloud discovered.
func (*Probe) AWS ¶
AWS detects if a system is on Amazon Web Services (AWS). Baremetal and Nitro (KVM) based instances will have "Amazon EC2" as the sys_vendor. The older Xen based systems (e.g t2) will show Xen. To further identify these systems the Hypervisor UUID will start with "ec2".
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify_ec2_instances.html
func (*Probe) Azure ¶
Azure detects if a system is on Microsoft Azure. The value assigned to the chassis_asset_tag in sys is hard-coded on Azure and is used to ID the platform.
func (*Probe) CloudSigma ¶
CloudSigma detects if a system is on CloudSigma.
func (*Probe) CloudStack ¶
CloudStack detects if a system is on Apache CloudStack.
func (*Probe) DigitalOcean ¶
DigitalOcean detects if a system is on DigitalOcean.
func (*Probe) GCP ¶
GCP detects if a system is on Google Compute Platform.
Source: https://github.com/googleapis/google-cloud-go/blob/master/compute/metadata/metadata.go#L188