Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hash ¶
type Hash struct {
Algorithm HashAlgorithm
HashValue []byte
}
func FromString ¶
func FromString(s string) (*Hash, error)
func HashesForResource ¶
func HashesForResource(r io.Reader, hashAlgorithms []HashAlgorithm) ([]*Hash, error)
type HashAlgorithm ¶
type HashAlgorithm string
const (
HashAlgorithmSHA256 HashAlgorithm = "sha256"
HashAlgorithmSHA1 HashAlgorithm = "sha1"
HashAlgorithmMD5 HashAlgorithm = "md5"
)
func (HashAlgorithm) FromString ¶
func (ha HashAlgorithm) FromString(s string) (*Hash, error)
Click to show internal directories.
Click to hide internal directories.