Documentation ¶
Index ¶
- Variables
- func ComputedSchema() *schema.Schema
- func NewIDString(region scw.Region, id string) string
- func NewRegionalIDs(region scw.Region, ids []string) []string
- func ParseID(regionalID string) (region scw.Region, id string, err error)
- func ParseNestedID(regionalNestedID string) (region scw.Region, outerID, innerID string, err error)
- func Schema() *schema.Schema
- type ID
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRegionNotFound = errors.New("could not detect region")
ErrRegionNotFound is returned when no region can be detected
Functions ¶
func ComputedSchema ¶
ComputedSchema returns a standard schema for a region
func NewIDString ¶
NewIDString constructs a unique identifier based on resource region and id
func NewRegionalIDs ¶ added in v2.47.0
func ParseNestedID ¶
ParseNestedID parses a regionalNestedID and extracts the resource region, inner and outer ID.
Types ¶
Click to show internal directories.
Click to hide internal directories.