Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashObject ¶
func HashObject(object interface{}) string
HashObject returns a hash of a given object using the 32-bit FNV-1 hash function and the spew library to print the object (see WriteHashObject). This is inspired by controller revisions in StatefulSets: https://github.com/kubernetes/kubernetes/blob/8de1569ddae62e8fab559fe6bd210a5d6100a277/pkg/controller/history/controller_history.go#L89-L101
func WriteHashObject ¶
WriteHashObject 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. The hash can be used for object comparisons. Copy of https://github.com/kubernetes/kubernetes/blob/ea0764452222146c47ec826977f49d7001b0ea8c/pkg/util/hash/hash.go#L28
Types ¶
This section is empty.