Documentation ¶
Index ¶
- Constants
- Variables
- func IsLegacyProjectRole(role string) bool
- func ListValuetoStringSlice(list basetypes.ListValue) ([]string, error)
- func QuoteValues(values []string) []string
- func ReconcileStringSlices(list1, list2 []string) []string
- func SimplifyBackupSchedule(schedule string) string
- func SupportedValuesDocumentation(values []string) string
Constants ¶
View Source
const (
SKEServiceId = "cloud.stackit.ske"
)
Variables ¶
View Source
var (
LegacyProjectRoles = []string{"project.admin", "project.auditor", "project.member", "project.owner"}
)
Functions ¶
func IsLegacyProjectRole ¶ added in v0.26.0
func ListValuetoStringSlice ¶
func QuoteValues ¶ added in v0.26.0
func ReconcileStringSlices ¶
ReconcileStringSlices reconciles two string lists by removing elements from the first list that are not in the second list and appending elements from the second list that are not in the first list. This preserves the order of the elements in the first list that are also in the second list, which is useful when using ListAttributes in Terraform. The source of truth for the order is the first list and the source of truth for the content is the second list.
func SimplifyBackupSchedule ¶ added in v0.19.0
Remove leading 0s from backup schedule numbers (e.g. "00 00 * * *" becomes "0 0 * * *") Needed as the API does it internally and would otherwise cause inconsistent result in Terraform
func SupportedValuesDocumentation ¶ added in v0.24.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.