Versions in this module Expand all Collapse all v0 v0.0.1 Dec 28, 2018 Changes in this version + type MockDB struct + KdfIterations int + Password string + RefreshToken string + TwoFactorSecret string + Username string + func (db *MockDB) AddAccount(acc bw.Account) error + func (db *MockDB) AddFolder(name string, owner string) (bw.Folder, error) + func (db *MockDB) Close() + func (db *MockDB) DeleteCipher(owner string, ciphID string) error + func (db *MockDB) GetAccount(username string, refreshtoken string) (bw.Account, error) + func (db *MockDB) GetCipher(owner string, ciphID string) (bw.Cipher, error) + func (db *MockDB) GetCiphers(owner string) ([]bw.Cipher, error) + func (db *MockDB) GetFolders(owner string) ([]bw.Folder, error) + func (db *MockDB) Init() error + func (db *MockDB) NewCipher(ciph bw.Cipher, owner string) (bw.Cipher, error) + func (db *MockDB) Open() error + func (db *MockDB) SetDir(d string) + func (db *MockDB) Update2FAsecret(secret string, email string) error + func (db *MockDB) UpdateAccountInfo(acc bw.Account) error + func (db *MockDB) UpdateCipher(newData bw.Cipher, owner string, ciphID string) error