Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInitNotAllowed = errors.New("tuf: repository already initialized")
ErrInitNotAllowed - repo has already been initialized
Functions ¶
This section is empty.
Types ¶
type ErrFileNotFound ¶
type ErrFileNotFound struct {
Path string
}
ErrFileNotFound - could not find a file
func (ErrFileNotFound) Error ¶
func (e ErrFileNotFound) Error() string
type ErrInsufficientKeys ¶
type ErrInsufficientKeys struct {
Name string
}
ErrInsufficientKeys - did not have enough keys to sign when requested
func (ErrInsufficientKeys) Error ¶
func (e ErrInsufficientKeys) Error() string
type ErrInsufficientSignatures ¶
ErrInsufficientSignatures - do not have enough signatures on a piece of metadata
func (ErrInsufficientSignatures) Error ¶
func (e ErrInsufficientSignatures) Error() string
type ErrInvalidExpires ¶
ErrInvalidExpires - the expiry time for a metadata file is invalid
func (ErrInvalidExpires) Error ¶
func (e ErrInvalidExpires) Error() string
type ErrInvalidRole ¶
type ErrInvalidRole struct {
Role string
}
ErrInvalidRole - role is wrong. Typically we're missing the public keys for it
func (ErrInvalidRole) Error ¶
func (e ErrInvalidRole) Error() string
type ErrKeyNotFound ¶
ErrKeyNotFound - could not find a given key on a role
func (ErrKeyNotFound) Error ¶
func (e ErrKeyNotFound) Error() string
type ErrMissingMetadata ¶
type ErrMissingMetadata struct {
Name string
}
ErrMissingMetadata - cannot find the file meta being requested. Specifically, could not find the FileMeta object in the expected location.
func (ErrMissingMetadata) Error ¶
func (e ErrMissingMetadata) Error() string
type ErrNotEnoughKeys ¶
ErrNotEnoughKeys - there are not enough keys to ever meet the signature threshold
func (ErrNotEnoughKeys) Error ¶
func (e ErrNotEnoughKeys) Error() string
type ErrPassphraseRequired ¶
type ErrPassphraseRequired struct {
Role string
}
ErrPassphraseRequired - a passphrase is needed and wasn't provided
func (ErrPassphraseRequired) Error ¶
func (e ErrPassphraseRequired) Error() string