Documentation ¶
Overview ¶
Package hash contains useful functionality for hashing.
This package is copied from:
https://github.com/kubernetes/kubernetes/blob/b695d79d4f967c403a96986f1750a35eb75e75f1/pkg/util/hash/hash.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶ added in v0.3.0
func ComputeHash(obj interface{}) string
ComputeHash computes hash value of a interface
func DeepHashObject ¶
DeepHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes.
func HashFolder ¶ added in v0.7.0
func HashFolder(ctx context.Context, folder string, filters ...HashFolderFilter) (hash string, err error)
HashFolder generates a hash for the folder
Types ¶
type HashFolderFilter ¶ added in v0.7.0
func IgnoreFilesFilter ¶ added in v0.7.0
func IgnoreFilesFilter(patterns ...string) HashFolderFilter
Click to show internal directories.
Click to hide internal directories.