util

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCacheKey added in v1.8.8

func GenerateCacheKey(format string, args ...any) (string, error)

GenerateCacheKey generates a cache key based on a format string and arguments

func MakeSignature added in v0.6.0

func MakeSignature(size int) ([]byte, error)

MakeSignature generates a cryptographically-secure pseudo-random token, based on a given number of random bytes, for signing purposes.

func SliceCopy added in v1.8.8

func SliceCopy[T runtime.Object](items []T) []T

SliceCopy generates a deep copy of a slice containing any type that implements the runtime.Object interface.

Types

This section is empty.

Directories

Path Synopsis
app
log
cd
normalizers
Code generated by github.com/hanzoai/cd/hack/known_types.
Code generated by github.com/hanzoai/cd/hack/known_types.
Utility functions for managing HTTPS server certificates and SSH known host entries for Hanzo CD
Utility functions for managing HTTPS server certificates and SSH known host entries for Hanzo CD
db
git
io
oci
text
vendored

Jump to

Keyboard shortcuts

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