Documentation ¶
Overview ¶
Package contenthash hashes the content of various objects.
Package contenthash hashes the content of various objects.
Index ¶
- func BytesMap(m map[string][]byte) string
- func ContainerUpdates(in *corev1.Container) string
- func ContainersUpdates(in []corev1.Container) string
- func StringList(in []string) string
- func StringMap(m map[string]string) string
- func StringMapKeys(m map[string]string) string
- func Tolerations(in []corev1.Toleration) string
- func TopologySpreadConstraints(in []corev1.TopologySpreadConstraint) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesMap ¶
BytesMap returns a hex-encoded hash of all the content in the map.
This can be used to compare two unordered sets of key-value pairs for equality. The keys can be arbitrary strings. The values can be arbitrary byte slices.
func ContainerUpdates ¶
ContainerUpdates returns a hex-encoded hash of a Container.
This is not guaranteed to detect changes in any part of the Container. We only try to detect certain changes that otherwise would not be applied by update.PodContainers(), such as when things are removed from lists in which extra items are usually tolerated because they might have been injected.
func ContainersUpdates ¶
ContainersUpdates returns a hex-encoded hash of a list of Containers.
This is not guaranteed to detect changes in any part of the Container. We only try to detect certain changes that otherwise would not be applied by update.PodContainers(), such as when things are removed from lists in which extra items are usually tolerated because they might have been injected.
func StringList ¶
StringList returns a hex-encoded hash of a list of strings.
This can be used to compare two ordered lists of strings for equality. The strings can be arbitrary values.
func StringMap ¶
StringMap returns a hex-encoded hash of all the content in the map.
This can be used to compare two unordered sets of key-value pairs for equality. The keys and values can both be arbitrary strings.
func StringMapKeys ¶
StringMapKeys returns a hex-encoded hash of only the keys in the map.
This can be used to compare two unordered sets of keys for equality. The keys can be arbitrary strings. The values in the map are ignored.
func Tolerations ¶
func Tolerations(in []corev1.Toleration) string
Tolerations returns a hex-encoded hash of a list of Tolerations.
func TopologySpreadConstraints ¶
func TopologySpreadConstraints(in []corev1.TopologySpreadConstraint) string
TopologySpreadConstraints returns a hex-encoded hash of a list of topologySpreadConstraints.
Types ¶
This section is empty.