cloudmetadata

package
v0.0.0-...-48ce822 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnknownAvailabilityZone = "WARPSTREAM_UNSET_AZ"
)

Functions

func AvailabilityZone

func AvailabilityZone(shutdownCtx context.Context, logger *slog.Logger) (string, error)

AvailabilityZone returns the availability zone in which the application is currently running.

func ValidateAZ

func ValidateAZ(input string) error

ValidateAZ checks if the provided string matches the regex pattern for a valid availability zone.

Types

This section is empty.

Jump to

Keyboard shortcuts

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