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 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 6 packages (graph) and is imported by 3 packages. Updated 2019-12-07. Refresh now. Tools for package owners.