locality

package
v2.48.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareLocalities

func CompareLocalities(loc1, loc2 string) bool

CompareLocalities compare two localities They are equal if they are the same or if one is a zone contained in a region

func ExpandID

func ExpandID(id interface{}) string

ExpandID returns the id whether it is a localizedID or a raw ID.

func ExpandIDs added in v2.42.0

func ExpandIDs(data interface{}) []string

func ParseLocalizedID

func ParseLocalizedID(localizedID string) (locality, id string, err error)

ParseLocalizedID parses a localizedID and extracts the resource locality and id.

func ParseLocalizedNestedID

func ParseLocalizedNestedID(localizedID string) (locality string, innerID, outerID string, err error)

ParseLocalizedNestedID parses a localizedNestedID and extracts the resource locality, the inner and outer id.

func ParseLocalizedNestedOwnerID

func ParseLocalizedNestedOwnerID(localizedID string) (locality string, innerID, outerID string, err error)

ParseLocalizedNestedOwnerID parses a localizedNestedOwnerID and extracts the resource locality, the inner and outer id and owner.

func ValidateStringInSliceWithWarning

func ValidateStringInSliceWithWarning(correctValues []string, field string) schema.SchemaValidateDiagFunc

ValidateStringInSliceWithWarning helps to only returns warnings in case we got a non-public locality passed

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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