alibaba

package
v0.0.0-...-7983b3b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 7 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(ctx context.Context) (string, error)

GetHostAlias returns the VM ID from the Alibaba Metadata api

func GetNTPHosts

func GetNTPHosts(ctx context.Context) []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(ctx context.Context) 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