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

utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHashedName

func GetHashedName(nsName string, length int) string

GetHashedName returns a partially hashed name for the string including up to the given length of the original name characters before the hash. Input `nsName` should be formatted as `{Namespace}/{ResourceName}`.

func HashString added in v0.6.0

func HashString(str string) string

func NamespacedName

func NamespacedName(obj client.Object) types.NamespacedName

NamespacedName creates and returns object's NamespacedName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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