package
0.7.0
Repository: https://github.com/theupdateframework/notary.git
Documentation: pkg.go.dev

# Functions

CreateChangefeedTable creates the DB table for Changefeed.
CreateTUFTable creates the DB table for TUFFile.
NewMemStorage instantiates a memStorage instance.
NewRethinkDBStorage initializes a RethinkDB object.
NewSQLStorage is a convenience method to create a SQLStorage.
NewTUFMetaStorage instantiates a TUFMetaStorage instance.

# Constants

ChangefeedTableName returns the name used for the changefeed table.
TUFFileTableName returns the name used for the tuf file table.

# Variables

ChangeRethinkTable is the table definition for changefeed objects.
TUFFilesRethinkTable is the table definition of notary server's TUF metadata files.

# Structs

Change defines the fields required for an object in the changefeed.
ErrBadQuery is used when the parameters provided cannot be appropriately coerced.
ErrKeyExists is returned when a key already exists.
ErrNoKey is returned when no timestamp key is found.
ErrNotFound is returned when TUF metadata isn't found for a specific record.
ErrOldVersion is returned when a newer version of TUF metadata is already available.
MemStorage is really just designed for dev and testing.
MetaUpdate packages up the fields required to update a TUF record.
RDBTUFFile is a TUF file record.
RethinkDB implements a MetaStore against the Rethink Database.
SQLChange defines the fields required for an object in the changefeed.
SQLStorage implements a versioned store using a relational database.
TUFFile represents a TUF file in the database.
TUFMetaStorage wraps a MetaStore in order to walk the TUF tree for GetCurrent in a consistent manner, by always starting from a current timestamp and then looking up other data by hash.

# Interfaces

KeyStore provides a minimal interface for managing key persistence.
MetaStore holds the methods that are used for a Metadata Store.