alibaba

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

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 GetHostAlias

func GetHostAlias() (string, error)

GetHostAlias returns the VM ID from the Alibaba Metadata api

func GetNTPHosts

func GetNTPHosts() []string

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

func IsRunningOn() bool

IsRunningOn returns true if the agent is running on Alibaba

Types

This section is empty.

Jump to

Keyboard shortcuts

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