hasher

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(hex string) (string, error)

Copied from https://github.com/kubernetes/kubernetes /blob/master/pkg/kubectl/util/hash/hash.go

func Hash

func Hash(data string) string

Hash returns the hex form of the sha256 of the argument.

func HashRNode added in v0.6.0

func HashRNode(node *yaml.RNode) (string, error)

HashRNode returns the hash value of input RNode

func SortArrayAndComputeHash

func SortArrayAndComputeHash(s []string) (string, error)

SortArrayAndComputeHash sorts a string array and returns a hash for it

Types

This section is empty.

Jump to

Keyboard shortcuts

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