platforms

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 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 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