Documentation
¶
Index ¶
- func CloudControlPropertyToTerraformAttribute(propertyName string) string
- func CreateTerraformTypeName(org, svc, res string) string
- func ParseCloudControlTypeName(typeName string) (string, string, string, error)
- func ParseTerraformTypeName(typeName string) (string, string, string, error)
- func Pluralize(name string) string
- func PluralizeWithCustomNameSuffix(name, suffix string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudControlPropertyToTerraformAttribute ¶
CloudControlPropertyToTerraformAttribute converts a Cloud Control property name to a Terraform attribute name. For example `GlobalReplicationGroupDescription` -> `global_replication_group_description`.
func CreateTerraformTypeName ¶
CreateTerraformTypeName creates a Terraform resource type name from 3 parts - Organization, Service and Resource.
func ParseCloudControlTypeName ¶
ParseCloudControlTypeName parses a Cloud Control resource type name into 3 parts - Organization, Service and Resource.
func ParseTerraformTypeName ¶
ParseTerraformTypeName parses a Terraform resource type name into 3 parts - Organization, Service and Resource.
func Pluralize ¶
Pluralize converts a name to its plural form. The inflection package is used as a first attempt to pluralize names, but exceptions to the rule are handled as follows:
- '_plural' is appended to a name ending in 's' e.g. 'windows'
- 's' is appended to a name ending in a number
func PluralizeWithCustomNameSuffix ¶
PluralizeWithCustomNameSuffix converts a name to its plural form similar to Pluralize, with the exception that a suffix can be passed in as an argument to be used only for names that are considered "custom" i.e. return true for isCustomName.
Types ¶
This section is empty.