hasher

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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 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