erasablekv

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 11 Imported by: 0

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