hash

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMapHash

func ConfigMapHash(cm *v1.ConfigMap) (string, error)

ConfigMapHash returns a hash of the ConfigMap. The Data, Kind, and Name are taken into account.

func NewNameHashTransformer

func NewNameHashTransformer() transformers.Transformer

NewNameHashTransformer construct a nameHashTransformer.

func SecretHash

func SecretHash(sec *v1.Secret) (string, error)

SecretHash returns a hash of the Secret. The Data, Kind, Name, and Type are taken into account.

Types

type KustHash

type KustHash struct{}

KustHash compute hash for unstructured objects

func NewKustHash

func NewKustHash() *KustHash

NewKustHash returns a KustHash object

func (*KustHash) Hash

func (h *KustHash) Hash(m map[string]interface{}) (string, error)

Hash returns a hash of either a ConfigMap or a Secret

Jump to

Keyboard shortcuts

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