snapshot

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL