Documentation ¶
Index ¶
Constants ¶
View Source
const ( Amazon = "amazon" Alibaba = "alibaba" Azure = "azure" Google = "google" Oracle = "oracle" DigitalOcean = "digitalocean" Unknown = "unknown" )
View Source
const ( AlibabaIdentifierString = "Alibaba Cloud" AmazonIdentifierString = "amazon" AzureIdentifierString = "Microsoft Corporation" DigitalOceanIdentifierString = "DigitalOcean" GoogleIdentifierString = "Google" OracleIdentifierString = "OracleCloud" )
View Source
const ( AlibabaSysFile = "/sys/class/dmi/id/product_name" AmazonSysFile = "/sys/class/dmi/id/product_version" AzureSysFile = "/sys/class/dmi/id/sys_vendor" DigitalOceanSysFile = "/sys/class/dmi/id/sys_vendor" GoogleSysFile = "/sys/class/dmi/id/product_name" OracleSysFile = "/sys/class/dmi/id/chassis_asset_tag" )
View Source
const ( AlibabaMetadataServer = "http://100.100.100.200/latest/meta-data/instance/instance-type" TokenForAlibabaMetadataServer = "http://100.100.100.200/latest/api/token" AmazonMetadataServer = "http://169.254.169.254/latest/dynamic/instance-identity/document" TokenForAmazonMetadataServerV2 = "http://169.254.169.254/latest/api/token" AzureMetadataServer = "http://169.254.169.254/metadata/instance?api-version=2021-02-01" DigitalOceanMetadataServer = "http://169.254.169.254/metadata/v1.json" GoogleMetadataServer = "http://metadata.google.internal/computeMetadata/v1/instance/tags" OracleMetadataServerV1 = "http://169.254.169.254/opc/v1/instance/metadata/" OracleMetadataServerV2 = "http://169.254.169.254/opc/v2/instance/metadata/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.