Documentation ¶
Overview ¶
Package data contains data models for internal types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathHexDigest ¶
PathHexDigest returns SHA256 hex digest of the byte array. 4.5. File formats: targets.json and delegated target roles: ...each target path, when hashed with the SHA-256 hash function to produce a 64-byte hexadecimal digest (HEX_DIGEST)...
Types ¶
type HexBytes ¶
type HexBytes []byte
HexBytes is a byte slice that can be encoded to and decoded from a string.
func (HexBytes) MarshalJSON ¶
MarshalJSON encodes a byte array into a json hex string.
func (*HexBytes) UnmarshalJSON ¶
UnmarshalJSON decodes a json hex string into a byte array.
Click to show internal directories.
Click to hide internal directories.