Documentation ¶
Overview ¶
Package alibaba provides utilities to detect the Alibaba cloud provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// CloudProviderName contains the inventory name of for EC2
CloudProviderName = "Alibaba"
)
declare these as vars not const to ease testing
Functions ¶
func GetHostAliases ¶
GetHostAliases returns the VM ID from the Alibaba Metadata api
func GetNTPHosts ¶
GetNTPHosts returns the NTP hosts for Alibaba if it is detected as the cloud provider, otherwise an empty array. These are their public NTP servers, as Alibaba uses two different types of private/internal networks for their cloud machines and we can't be sure those servers are always accessible for every customer on every network type. Docs: https://www.alibabacloud.com/help/doc-detail/92704.htm
func IsRunningOn ¶
IsRunningOn returns true if the agent is running on Alibaba
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.