util

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubernetesName

func KubernetesName(id string, hashLen, maxLen int) string

KubernetesName returns the passed id if it less than maxLen, otherwise a truncated version of id with a unique hash of length hashLen appended with length maxLen. maxLen must be at least 5 + hashLen, and hashLen must be at least 4.

Types

This section is empty.

Jump to

Keyboard shortcuts

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