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

# Packages

No description provided by the author

# Functions

NewFileStore creates a fully configurable file store.
NewHTTPStore initializes a new store against a URL and a number of configuration options.
NewMemoryStore returns a MetadataStore that operates entirely in memory.
NewMultiPartMetaRequest builds a request with the provided metadata updates in multipart form.
NewNotaryServerStore returns a new HTTPStore against a URL which should represent a notary server.
NewPrivateKeyFileStorage initializes a new filestore for private keys, appending the notary.PrivDir to the baseDir.
NewPrivateSimpleFileStore is a wrapper to create an owner readable/writeable _only_ filestore.

# Constants

MaxErrorResponseSize is the maximum size for an error message - 1KiB.
MaxKeySize is the maximum size for a stored TUF key - 256KiB.
NoSizeLimit is represented as -1 for arguments to GetMeta.

# Variables

ErrPathOutsideStore indicates that the returned path would be outside the store.

# Structs

ErrInvalidOperation indicates that the server returned a 400 response and propagate any body we received.
ErrMaliciousServer indicates the server returned a response that is highly suspected of being malicious.
ErrMetaNotFound indicates we did not find a particular piece of metadata in the store.
ErrOffline is used to indicate we are operating offline.
ErrServerUnavailable indicates an error from the server.
FilesystemStore is a store in a locally accessible directory.
HTTPStore manages pulling and pushing metadata from and to a remote service over HTTP.
MemoryStore implements a mock RemoteStore entirely in memory.
NetworkError represents any kind of network error when attempting to make a request.
OfflineStore is to be used as a placeholder for a nil store.

# Interfaces

Bootstrapper is a thing that can set itself up.
MetadataStore must be implemented by anything that intends to interact with a store of TUF files.
PublicKeyStore must be implemented by a key service.
RemoteStore is similar to LocalStore with the added expectation that it should provide a way to download targets once located.