Documentation
¶
Index ¶
- func SanitizeMap(parentName string, actionName string, input map[string]any) (map[string]string, []terraform.TerraformVariable)
- func SanitizeName(name string) string
- func SanitizeNamePointer(name *string) string
- func SanitizeParameterName(dependencies *data.ResourceDetailsCollection, name string, ...) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeMap ¶
func SanitizeMap(parentName string, actionName string, input map[string]any) (map[string]string, []terraform.TerraformVariable)
SanitizeMap takes a map returned by the Octopus API, and replaces any sensitive value references with a placeholder
func SanitizeName ¶
SanitizeName creates a string that can be used as a name for HCL resources From the Terraform docs: A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes.
func SanitizeNamePointer ¶
SanitizeNamePointer creates a string pointer that can be used as a name for HCL resources
func SanitizeParameterName ¶ added in v0.1.903
func SanitizeParameterName(dependencies *data.ResourceDetailsCollection, name string, parameterType string) string
SanitizeParameterName creates a string that can be used as slug in a step template parameter name It ensures the name is unique is the set of dependencies. This is important because a sanitized string can produce conflicts e.g. "DockerHub" and "Docker Hub" are both sanitized to "DockerHub".
Types ¶
This section is empty.