package snapshot
import "github.com/theupdateframework/notary/server/snapshot"
Index ¶
- func GetOrCreateSnapshot(gun string, store storage.MetaStore, cryptoService signed.CryptoService) ([]byte, error)
- func GetOrCreateSnapshotKey(gun string, store storage.KeyStore, crypto signed.CryptoService, createAlgorithm string) (data.PublicKey, error)
Functions ¶
func GetOrCreateSnapshot ¶
func GetOrCreateSnapshot(gun string, store storage.MetaStore, cryptoService signed.CryptoService) ([]byte, error)
GetOrCreateSnapshot either returns the exisiting latest snapshot, or uses whatever the most recent snapshot is to create the next one, only updating the expiry time and version.
func GetOrCreateSnapshotKey ¶
func GetOrCreateSnapshotKey(gun string, store storage.KeyStore, crypto signed.CryptoService, createAlgorithm string) (data.PublicKey, error)
GetOrCreateSnapshotKey either creates a new snapshot key, or returns the existing one. Only the PublicKey is returned. The private part is held by the CryptoService.
Source Files ¶
- Version
- v0.2.0
- Published
- Feb 25, 2016
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.