Help us shape the future of Go! Take the 2026 Go Developer Survey

naming

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(name string) string

Sanitize converts a human-readable name into a valid Terraform resource label.

func StripScriptExtension

func StripScriptExtension(name string) string

StripScriptExtension removes a trailing script file extension from a name.

Types

type Tracker

type Tracker struct {
	// contains filtered or unexported fields
}

Tracker keeps track of used labels per resource type to avoid collisions. Not thread-safe — callers must synchronise access if used concurrently.

func NewTracker

func NewTracker() *Tracker

func (*Tracker) Label

func (t *Tracker) Label(resourceType, name string) string

Label converts a Jamf object name into a valid Terraform resource label and ensures uniqueness within the given resource type.

Jump to

Keyboard shortcuts

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