Documentation ¶
Index ¶
- Variables
- func AllZones() []string
- func ComputedSchema() *schema.Schema
- func NewIDString(zone scw.Zone, id string) string
- func NewNestedIDString(zone scw.Zone, outerID, innerID string) string
- func ParseID(zonedID string) (zone scw.Zone, id string, err error)
- func ParseNestedID(zonedNestedID string) (zone scw.Zone, outerID, innerID string, err error)
- func Schema() *schema.Schema
- type ID
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrZoneNotFound = errors.New("could not detect zone. Scaleway uses regions and zones. For more information, refer to https://www.terraform.io/docs/providers/scaleway/guides/regions_and_zones.html")
ErrZoneNotFound is returned when no zone can be detected
Functions ¶
func ComputedSchema ¶
ComputedSchema returns a standard schema for a zone
func NewIDString ¶
NewIDString constructs a unique identifier based on resource zone and id
func NewNestedIDString ¶
NewNestedIDString constructs a unique identifier based on resource zone, inner and outer IDs
func ParseNestedID ¶
ParseNestedID parses a zonedNestedID and extracts the resource zone ,inner and outer ID.
Types ¶
Click to show internal directories.
Click to hide internal directories.