notary: github.com/docker/notary/server/snapshot Index | Files

package snapshot

import "github.com/docker/notary/server/snapshot"

Index

Package Files

snapshot.go

func GetOrCreateSnapshot Uses

func GetOrCreateSnapshot(gun data.GUN, checksum string, store storage.MetaStore, cryptoService signed.CryptoService) (
    *time.Time, []byte, error)

GetOrCreateSnapshot either returns the existing latest snapshot, or uses whatever the most recent snapshot is to generate the next one, only updating the expiry time and version. Note that this function does not write generated snapshots to the underlying data store, and will either return the latest snapshot time or nil as the time modified

func GetOrCreateSnapshotKey Uses

func GetOrCreateSnapshotKey(gun data.GUN, store storage.MetaStore, 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.

func RotateSnapshotKey Uses

func RotateSnapshotKey(gun data.GUN, store storage.MetaStore, crypto signed.CryptoService, createAlgorithm string) (data.PublicKey, error)

RotateSnapshotKey attempts to rotate a snapshot key in the signer, but might be rate-limited by the signer

Package snapshot imports 8 packages (graph) and is imported by 7 packages. Updated 2018-02-15. Refresh now. Tools for package owners.