Documentation ¶
Index ¶
- type MockDB
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct { Username string Password string RefreshToken string TwoFactorSecret string KdfIterations int }
mock database used for testing
func (*MockDB) GetAccount ¶
func (*MockDB) Update2FAsecret ¶
Click to show internal directories.
Click to hide internal directories.