Documentation ¶
Index ¶
- func SetDisableBackup(ctx context.Context, g *libkb.GlobalContext, name string) error
- type ErasableKVStore
- type FileErasableKVStore
- func (s *FileErasableKVStore) AllKeys(ctx context.Context) (keys []string, err error)
- func (s *FileErasableKVStore) Erase(ctx context.Context, key string) (err error)
- func (s *FileErasableKVStore) Get(ctx context.Context, key string, val interface{}) (err error)
- func (s *FileErasableKVStore) Put(ctx context.Context, key string, val interface{}) (err error)
- type UnboxError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDisableBackup ¶
Types ¶
type ErasableKVStore ¶
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)
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
Click to show internal directories.
Click to hide internal directories.