hash

package
v0.0.0-...-78585f7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHashForNSTemplateSetSpec

func ComputeHashForNSTemplateSetSpec(s toolchainv1alpha1.NSTemplateSetSpec) (string, error)

ComputeHashForNSTemplateSetSpec computes the hash of the `.spec.namespaces[].templateRef` + `.spec.clusteResource.TemplateRef`

func ComputeHashForNSTemplateTier

func ComputeHashForNSTemplateTier(tier *toolchainv1alpha1.NSTemplateTier) (string, error)

ComputeHashForNSTemplateTier computes the hash of the `.spec.namespaces[].templateRef` + `.spec.clusteResource.TemplateRef`

func Encode

func Encode(value []byte) string

func EncodeString

func EncodeString(value string) string

func TemplateTierHashLabelKey

func TemplateTierHashLabelKey(tierName string) string

TemplateTierHashLabelKey returns the label key to specify the version of the templates of the given tier

func TierHashMatches

func TierHashMatches(tmplTier *toolchainv1alpha1.NSTemplateTier, nsTmplSetSpec toolchainv1alpha1.NSTemplateSetSpec) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL