cloud

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnEKS

func OnEKS() bool

func OnGKE

func OnGKE() bool

Types

type CloudProvider

type CloudProvider string
const (
	EKSCloud     CloudProvider = "EKS"
	GKECloud     CloudProvider = "GKE"
	UnknownCloud CloudProvider = "Unknown"
)

type InstanceMetadata

type InstanceMetadata struct {
	InstanceType  string
	CloudProvider CloudProvider
}

func Discover

func Discover(ctx context.Context) (*InstanceMetadata, error)

Jump to

Keyboard shortcuts

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