erasablekv

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 11 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(ctx context.Context, g *libkb.GlobalContext, name string) error

Types

type ErasableKVStore

type ErasableKVStore interface {
	Put(ctx context.Context, key string, val interface{}) error
	Get(ctx context.Context, key string, val interface{}) error
	Erase(ctx context.Context, key string) error
	AllKeys(ctx context.Context) ([]string, error)
}

type FileErasableKVStore

type FileErasableKVStore struct {
	libkb.Contextified
	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(g *libkb.GlobalContext, subDir string) *FileErasableKVStore

func (*FileErasableKVStore) AllKeys

func (s *FileErasableKVStore) AllKeys(ctx context.Context) (keys []string, err error)

func (*FileErasableKVStore) Erase

func (s *FileErasableKVStore) Erase(ctx context.Context, key string) (err error)

func (*FileErasableKVStore) Get

func (s *FileErasableKVStore) Get(ctx context.Context, key string, val interface{}) (err error)

func (*FileErasableKVStore) Put

func (s *FileErasableKVStore) Put(ctx context.Context, key string, val interface{}) (err error)

Jump to

Keyboard shortcuts

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