hasher

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationHash = api.InternalFlagPrefix + "template-hash"

Variables

This section is empty.

Functions

func AddAnnotation

func AddAnnotation(object metav1.Object) error

func GenerateHash

func GenerateHash(input any) (string, error)

GenerateHash creates a hash from the provided input. This hash is meant to be used for simplifying detecting differences between 2 objects. Uses FNV-1 hashing, should be used for hashing not sensitive data.

func GenerateSecureHash added in v1.7.0

func GenerateSecureHash(input any) (string, error)

GenerateSecureHash creates a hash from the provided input. This hash is meant to be used for simplifying detecting differences between 2 values. Uses SHA256 hashing, can be used for hashing sensitive data.

func IsAnnotationDifferent

func IsAnnotationDifferent(a, b metav1.Object) bool

func IsDifferent

func IsDifferent(a, b any) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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