platforms

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Azure   = "azure"
	EC2     = "ec2"
	Generic = "generic"
	GENI    = "geni"
	GCP     = "gcp"
	NUC     = "intel-nuc"
	SCW     = "scaleway"
)

Variables

This section is empty.

Functions

func AzureGetMetadata

func AzureGetMetadata(s string) string

func Detect

func Detect() string

Detect returns the host platform. If no platform is detected, it returns PlatformGeneric.

func EC2GetMetadata

func EC2GetMetadata(s string) string

func GCPGetMetadata

func GCPGetMetadata(s string) string

func IsCloud added in v1.0.9

func IsCloud(platform string) bool

IsCloud returns whether the platform is a cloud provider or not.

func SCWGetMetadata

func SCWGetMetadata() instance.Metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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