Documentation
¶
Index ¶
Constants ¶
View Source
const MaxDelegationHashPrefixBitLen = 32
View Source
const MinDelegationHashPrefixBitLen = 1
Variables ¶
View Source
var ErrTopLevelTargetsRoleMissing = errors.New("tuf: top level targets role missing from top level keys DB")
Functions ¶
Types ¶
type Delegation ¶
type Delegation struct {
Delegator string
Delegatee data.DelegatedRole
DB *verify.DB
}
type HashBin ¶ added in v0.2.0
type HashBin struct {
// contains filtered or unexported fields
}
HashBin represents a hex prefix range. First should be less than Last.
func (*HashBin) HashPrefixes ¶ added in v0.2.0
HashPrefixes returns a slice of all hash prefixes in the bin.
type HashBins ¶ added in v0.2.0
type HashBins struct {
// contains filtered or unexported fields
}
HashBins represents an ordered list of hash bin target roles, which together partition the space of target path hashes equal-sized buckets based on path has prefix.
func NewHashBins ¶ added in v0.2.0
NewHashBins creates a HashBins partitioning with 2^bitLen buckets.
Click to show internal directories.
Click to hide internal directories.