Documentation
¶
Overview ¶
Package sri provides the means to compute sub-resource-integrity sha sums for a list of files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resource ¶
type Resource struct { Path string `json:"path"` Sha256 hash.Hash `json:"sha_256"` Sha384 hash.Hash `json:"sha_384"` Sha512 hash.Hash `json:"sha_512"` }
Resource is a named file with sub-resource-integrity hashes combined
func (*Resource) MarshalJSON ¶
MarshalJSON encodes the Resource into JSON, hex encoding the SHAsums
Click to show internal directories.
Click to hide internal directories.