Documentation
¶
Index ¶
- type DB
- func (db *DB) AddAccount(acc bw.Account) error
- func (db *DB) AddCipher(cipher bw.Cipher, owner string) error
- func (db *DB) AddCollection(collection bw.CollectionData) error
- func (db *DB) AddFolder(name string, owner string) (bw.Folder, error)
- func (db *DB) AddOrgUser(user bw.OrgUserwId) error
- func (db *DB) Close()
- func (db *DB) DeleteCipher(id string) error
- func (db *DB) GetAccount(username string, refreshtoken string) (bw.Account, error)
- func (db *DB) GetCipher(id string) (bw.Cipher, error)
- func (db *DB) GetCiphers(owner string) ([]bw.Cipher, error)
- func (db *DB) GetCiphersOrg(organization string) ([]bw.Cipher, error)
- func (db *DB) GetCollection(id string) (bw.CollectionData, error)
- func (db *DB) GetCollections(organizationid string) ([]bw.CollectionData, error)
- func (db *DB) GetFolders(owner string) ([]bw.Folder, error)
- func (db *DB) GetID(id string) (bw.Account, error)
- func (db *DB) GetOrgUser(orgUserId string) (bw.OrgUserwId, error)
- func (db *DB) GetOrgUserbyEmail(email string) (bw.OrgUserwId, error)
- func (db *DB) GetOrgUserbyId(Id string) (bw.OrgUserwId, error)
- func (db *DB) GetOrgUsers(orgId string) (bw.OrgUserswId, error)
- func (db *DB) Init() 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(id string, cipher bw.Cipher, owner string) error
- func (db *DB) UpdateFolder(newFolder bw.Folder, owner string) error
- func (db *DB) UpdateOrgUser(user bw.OrgUserwId) 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) AddCollection ¶
func (db *DB) AddCollection(collection bw.CollectionData) error
func (*DB) AddOrgUser ¶
func (db *DB) AddOrgUser(user bw.OrgUserwId) error
func (*DB) DeleteCipher ¶
func (*DB) GetAccount ¶
func (*DB) GetCollection ¶
func (db *DB) GetCollection(id string) (bw.CollectionData, error)
func (*DB) GetCollections ¶
func (db *DB) GetCollections(organizationid string) ([]bw.CollectionData, error)
func (*DB) GetOrgUser ¶
func (db *DB) GetOrgUser(orgUserId string) (bw.OrgUserwId, error)
func (*DB) GetOrgUserbyEmail ¶
func (db *DB) GetOrgUserbyEmail(email string) (bw.OrgUserwId, error)
func (*DB) GetOrgUserbyId ¶
func (db *DB) GetOrgUserbyId(Id string) (bw.OrgUserwId, error)
func (*DB) GetOrgUsers ¶
func (db *DB) GetOrgUsers(orgId string) (bw.OrgUserswId, error)
func (*DB) UpdateCipher ¶
func (*DB) UpdateOrgUser ¶
func (db *DB) UpdateOrgUser(user bw.OrgUserwId) error
Click to show internal directories.
Click to hide internal directories.