sanitizer

package
v0.1.1205 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

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

func SanitizeName(name string) string

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

func SanitizeNamePointer(name *string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL