erasablekv

package
v0.0.0-...-5fd17ea Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 13 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)

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