cockroach: github.com/cockroachdb/cockroach/pkg/util/cloudinfo Index | Files

package cloudinfo

import "github.com/cockroachdb/cockroach/pkg/util/cloudinfo"

Index

Package Files

cloudinfo.go

func Disable Uses

func Disable() (restore func())

Disable disables cloud detection until the returned function is called. Used for tests that trigger diagnostics updates.

func GetInstanceClass Uses

func GetInstanceClass(ctx context.Context) (providerName string, instanceClassName string)

GetInstanceClass returns the node's instance provider (e.g. AWS) and the name given to its instance class (e.g. m5a.large).

func GetInstanceRegion Uses

func GetInstanceRegion(ctx context.Context) (providerName string, regionName string)

GetInstanceRegion returns the node's instance provider (e.g. AWS) and the name given to its region (e.g. us-east-1d).

Package cloudinfo imports 7 packages (graph) and is imported by 4 packages. Updated 2020-07-03. Refresh now. Tools for package owners.