location

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package location implements location parsing utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Region string
	Zone   *string
}

Location captures the region and zone of a GCP location. Examples of GCP location: us-central1 (region). us-central1-c (region with zone).

func Parse

func Parse(location string) (Location, error)

Parse parses a location string.

Jump to

Keyboard shortcuts

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