Documentation ¶
Index ¶
- func CompareLocalities(loc1, loc2 string) bool
- func ExpandID(id interface{}) string
- func ExpandIDs(data interface{}) []string
- func ParseLocalizedID(localizedID string) (locality, id string, err error)
- func ParseLocalizedNestedID(localizedID string) (locality string, innerID, outerID string, err error)
- func ParseLocalizedNestedOwnerID(localizedID string) (locality string, innerID, outerID string, err error)
- func ValidateStringInSliceWithWarning(correctValues []string, field string) schema.SchemaValidateDiagFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareLocalities ¶
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 ParseLocalizedID ¶
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.
Click to show internal directories.
Click to hide internal directories.