cloud

package
v1.10.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 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