sanitizer

package
v1.3.28 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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