Documentation ¶
Index ¶
- func ComputeFNV32Hash(obj interface{}, collisionCount *int32) string
- func ComputeSHA256Hash(obj interface{}, collisionCount *int32) string
- func DeepHashObject(hasher hash.Hash, objectToWrite interface{})
- func GenerateStaticImages(manifest *v1alpha1.PackageManifest) map[string]string
- func GetObjectsFromPhases(phases []corev1alpha1.ObjectSetTemplatePhase) []corev1alpha1.ObjectSetObject
- func ImageURLWithOverride(img string, override string) (string, error)
- func ImageURLWithOverrideFromEnv(img string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFNV32Hash ¶
ComputeHash returns a fnv32 hash value calculated from pod template and a collisionCount to avoid hash collision. The hash will be safe encoded to avoid bad words.
func ComputeSHA256Hash ¶
ComputeHash returns a sha236 hash value calculated from pod template and a collisionCount to avoid hash collision. The hash will be safe encoded to avoid bad words.
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 GenerateStaticImages ¶
func GenerateStaticImages(manifest *v1alpha1.PackageManifest) map[string]string
GenerateStaticImages generates a static set of images to be used for tests and other purposes.
func GetObjectsFromPhases ¶
func GetObjectsFromPhases(phases []corev1alpha1.ObjectSetTemplatePhase) []corev1alpha1.ObjectSetObject
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.