Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
type MapSanitizer ¶ added in v0.1.1237
type MapSanitizer struct {
DummySecretGenerator dummy.DummySecretGenerator
DummySecretVariableValues bool
}
func (MapSanitizer) SanitizeMap ¶ added in v0.1.1237
func (c MapSanitizer) SanitizeMap(parentName string, actionName string, input map[string]any, dependencies *data.ResourceDetailsCollection) (map[string]string, []terraform.TerraformVariable)
SanitizeMap takes a map returned by the Octopus API, and replaces any sensitive value references with a placeholder