keys

package
v0.0.0-...-69a7a08 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2015 License: BSD-3-Clause Imports: 2 Imported by: 0

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")
)

Functions

This section is empty.

Types

type KeyDB

type KeyDB struct {
	// contains filtered or unexported fields
}

func NewDB

func NewDB() *KeyDB

func (*KeyDB) AddKey

func (db *KeyDB) AddKey(k *data.PublicKey)

func (*KeyDB) AddRole

func (db *KeyDB) AddRole(r *data.Role) error

func (*KeyDB) GetKey

func (db *KeyDB) GetKey(id string) *data.PublicKey

func (*KeyDB) GetRole

func (db *KeyDB) GetRole(name string) *data.Role

Jump to

Keyboard shortcuts

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