errors

package
v0.0.0-...-3b700e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2015 License: BSD-3-Clause Imports: 3 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type ErrInsufficientSignatures struct {
	Name string
	Err  error
}

ErrInsufficientSignatures - do not have enough signatures on a piece of metadata

func (ErrInsufficientSignatures) Error

type ErrInvalidExpires

type ErrInvalidExpires struct {
	Expires time.Time
}

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

type ErrKeyNotFound struct {
	Role  string
	KeyID string
}

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

type ErrNotEnoughKeys struct {
	Role      string
	Keys      int
	Threshold int
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL