erasablekv

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDisableBackup

func SetDisableBackup(mctx libkb.MetaContext, name string) error

Types

type ErasableKVStore

type ErasableKVStore interface {
	Put(mctx libkb.MetaContext, key string, val interface{}) error
	Get(mctx libkb.MetaContext, key string, val interface{}) error
	Erase(mctx libkb.MetaContext, key string) error
	AllKeys(mctx libkb.MetaContext, keySuffix string) ([]string, error)
}

type FileErasableKVStore

type FileErasableKVStore struct {
	sync.Mutex
	// contains filtered or unexported fields
}

File based erasable kv store. Thread safe. We encrypt all data stored here with a mix of the device long term key and a large random noise file. We use the random noise file to make it more difficult to recover the encrypted data once the noise file is wiped from the filesystem as is done for the secret_store_file.

func NewFileErasableKVStore

func NewFileErasableKVStore(mctx libkb.MetaContext, subDir string) *FileErasableKVStore

func (*FileErasableKVStore) AllKeys

func (s *FileErasableKVStore) AllKeys(mctx libkb.MetaContext, keySuffix string) (keys []string, err error)

func (*FileErasableKVStore) Erase

func (s *FileErasableKVStore) Erase(mctx libkb.MetaContext, key string) (err error)

func (*FileErasableKVStore) Get

func (s *FileErasableKVStore) Get(mctx libkb.MetaContext, key string, val interface{}) (err error)

func (*FileErasableKVStore) Put

func (s *FileErasableKVStore) Put(mctx libkb.MetaContext, key string, val interface{}) (err error)

type UnboxError

type UnboxError struct {
	// contains filtered or unexported fields
}

func NewUnboxError

func NewUnboxError(inner error) UnboxError

func (UnboxError) Error

func (e UnboxError) Error() string

Jump to

Keyboard shortcuts

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