Documentation ¶
Index ¶
- type DB
- func (db *DB) AddAccount(acc bw.Account) error
- func (db *DB) AddFolder(name string, owner string) (bw.Folder, error)
- func (db *DB) Close()
- func (db *DB) DeleteCipher(owner string, ciphID string) error
- func (db *DB) GetAccount(username string, refreshtoken string) (bw.Account, error)
- func (db *DB) GetCipher(owner string, ciphID string) (bw.Cipher, error)
- func (db *DB) GetCiphers(owner string) ([]bw.Cipher, error)
- func (db *DB) GetFolders(owner string) ([]bw.Folder, error)
- func (db *DB) Init() error
- func (db *DB) NewCipher(ciph bw.Cipher, owner string) (bw.Cipher, error)
- func (db *DB) Open() error
- func (db *DB) SetDir(d string)
- func (db *DB) Update2FAsecret(secret string, email string) error
- func (db *DB) UpdateAccountInfo(acc bw.Account) error
- func (db *DB) UpdateCipher(newData bw.Cipher, owner string, ciphID string) error
- func (db *DB) UpdateFolder(newFolder bw.Folder, owner string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteCipher ¶
Important to check that the owner is correct before an update!
func (*DB) GetAccount ¶
func (*DB) UpdateCipher ¶
Important to check that the owner is correct before an update!
Click to show internal directories.
Click to hide internal directories.