Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongType = errors.New("tuf: invalid key type") ErrExists = errors.New("tuf: key already in db") ErrWrongID = errors.New("tuf: key id mismatch") ErrInvalidKey = errors.New("tuf: invalid key") ErrInvalidRole = errors.New("tuf: invalid role") ErrInvalidKeyID = errors.New("tuf: invalid key id") ErrInvalidThreshold = errors.New("tuf: invalid role threshold") )
Various basic key database errors
Functions ¶
This section is empty.
Types ¶
type KeyDB ¶
type KeyDB struct {
// contains filtered or unexported fields
}
KeyDB is an in memory database of public keys and role associations. It is populated when parsing TUF files and used during signature verification to look up the keys for a given role
func (*KeyDB) AddRole ¶
AddRole adds a role to the database. Any keys associated with the role must have already been added.
Click to show internal directories.
Click to hide internal directories.