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

# Packages

No description provided by the author
No description provided by the author

# Functions

CopyKeys copies keys of a particular role to a new cryptoservice, and returns that cryptoservice.
CopyRepoMetadata makes a copy of a metadata->bytes mapping.
CreateKey creates a new key inside the cryptoservice for the given role and gun, returning the public key.
EmptyRepo creates an in memory crypto service and initializes a repo with no targets.
NewCorruptingMemoryStore returns a new instance of memory store that corrupts all data requested from it.
NewLongMemoryStore returns a new instance of memory store that returns one byte too much data on any request to GetMeta.
NewMetadataSwizzler returns a new swizzler when given a gun, mapping of roles to initial metadata bytes, and a cryptoservice.
NewRepoMetadata creates a TUF repo and returns the metadata.
NewShortMemoryStore returns a new instance of memory store that returns one byte too little data on any request to GetMeta.
Serialize takes the Signed objects for the 4 top level roles and serializes them all to JSON.
Sign signs all top level roles in a repo in the appropriate order.
SignAndSerialize calls Sign and then Serialize to get the repo metadata out.

# Structs

CorruptingMemoryStore corrupts all data returned by GetMeta.
ErrNoKeyForRole returns an error when the cryptoservice provided to MetadataSwizzler has no key for a particular role.
LongMemoryStore corrupts all data returned by GetMeta.
MetadataSwizzler fuzzes the metadata in a MetadataStore.
ShortMemoryStore corrupts all data returned by GetMeta.
TestBootstrapper is a simple implemented of the Bootstrapper interface to be used for tests.