Documentation ¶
Overview ¶
Package tencent provides utilities to detect tencent cloud provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// CloudProviderName contains the inventory name of for CVM
CloudProviderName = "Tencent"
)
declare these as vars not const to ease testing
Functions ¶
func GetHostAliases ¶
GetHostAliases returns the VM ID from the Tencent Metadata api
func GetInstanceID ¶
GetInstanceID fetches the instance id for current host from the Tencent metadata API
func GetNTPHosts ¶
GetNTPHosts returns the NTP hosts for Tencent if it is detected as the cloud provider, otherwise an empty array. Demo: https://intl.cloud.tencent.com/document/product/213/32379
func IsRunningOn ¶
IsRunningOn returns true if the agent is running on Tencent Cloud
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.