Sync over

This commit is contained in:
Jeff Mitchell
2017-10-23 16:42:56 -04:00
parent d79e0d2ad5
commit 98168dc791
36 changed files with 521 additions and 167 deletions

View File

@@ -23,8 +23,9 @@ type Storage interface {
// StorageEntry is the entry for an item in a Storage implementation.
type StorageEntry struct {
Key string
Value []byte
Key string
Value []byte
SealWrap bool
}
// DecodeJSON decodes the 'Value' present in StorageEntry.
@@ -94,6 +95,10 @@ func CollectKeys(view ClearableView) ([]string, error) {
// ClearView is used to delete all the keys in a view
func ClearView(view ClearableView) error {
if view == nil {
return nil
}
// Collect all the keys
keys, err := CollectKeys(view)
if err != nil {