...

Package hash

import "sigs.k8s.io/release-utils/hash"
Overview
Index

Overview ▾

func ForFile

func ForFile(filename string, hasher hash.Hash) (string, error)

ForFile returns the hex-encoded hash for the provided filename and hasher.

func SHA1ForFile

func SHA1ForFile(filename string) (string, error)

SHA1ForFile returns the hex-encoded sha1 hash for the provided filename. TODO: check if we can remove this function

func SHA256ForFile

func SHA256ForFile(filename string) (string, error)

SHA256ForFile returns the hex-encoded sha256 hash for the provided filename.

func SHA512ForFile

func SHA512ForFile(filename string) (string, error)

SHA512ForFile returns the hex-encoded sha512 hash for the provided filename.