util

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepHashObject added in v0.7.0

func DeepHashObject(hasher hash.Hash, objectToWrite interface{})

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 Hash added in v0.7.0

func Hash(o interface{}) string

func ObjectInfo added in v0.7.0

func ObjectInfo(obj KubernetesObject) string

func ObjectKey added in v0.7.0

func ObjectKey(obj KubernetesObject) types.NamespacedName

Types

type KubernetesObject added in v0.7.0

type KubernetesObject interface {
	metav1.Object
	runtime.Object
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL