Documentation
¶
Index ¶
- Variables
- func AllRegions() []string
- func ComputedSchema() *schema.Schema
- func NewIDString(region scw.Region, id string) string
- func NewIDStrings(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
- func SchemaAttribute() schema.StringAttribute
- 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 AllRegions ¶ added in v2.65.0
func AllRegions() []string
AllRegions returns all valid Scaleway regions as strings
func ComputedSchema ¶
ComputedSchema returns a standard schema for a region
func NewIDString ¶
NewIDString constructs a unique identifier based on resource region and id
func ParseNestedID ¶
ParseNestedID parses a regionalNestedID and extracts the resource region, inner and outer ID.
func SchemaAttribute ¶ added in v2.65.0
func SchemaAttribute() schema.StringAttribute
SchemaAttribute returns a Plugin Framework schema attribute for a region field
Types ¶
Click to show internal directories.
Click to hide internal directories.