Documentation
¶
Overview ¶
Package targets implements the traversal of targets delegations and the generation of hashed bin delegations.
Deprecated: The legacy go-tuf module is deprecated in favour of github.com/theupdateframework/go-tuf/v2.
Index ¶
Constants ¶
const MaxDelegationHashPrefixBitLen = 32
const MinDelegationHashPrefixBitLen = 1
Variables ¶
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.