hash

package
v0.0.0-...-34f3205 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 12

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