sqlite

package
v0.0.0-...-8af39c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) AddAccount

func (db *DB) AddAccount(acc bw.Account) error

func (*DB) AddCipher

func (db *DB) AddCipher(cipher bw.Cipher, owner string) error

AddCipher adds a cipher to the database

func (*DB) AddCollection

func (db *DB) AddCollection(collection bw.CollectionData) error

func (*DB) AddFolder

func (db *DB) AddFolder(name string, owner string) (bw.Folder, error)

func (*DB) AddOrgUser

func (db *DB) AddOrgUser(user bw.OrgUserwId) error

func (*DB) Close

func (db *DB) Close()

func (*DB) DeleteCipher

func (db *DB) DeleteCipher(id string) error

func (*DB) GetAccount

func (db *DB) GetAccount(username string, refreshtoken string) (bw.Account, error)

func (*DB) GetCipher

func (db *DB) GetCipher(id string) (bw.Cipher, error)

func (*DB) GetCiphers

func (db *DB) GetCiphers(owner string) ([]bw.Cipher, error)

func (*DB) GetCiphersOrg

func (db *DB) GetCiphersOrg(organization string) ([]bw.Cipher, error)

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) GetFolders

func (db *DB) GetFolders(owner string) ([]bw.Folder, error)

func (*DB) GetID

func (db *DB) GetID(id string) (bw.Account, 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) Init

func (db *DB) Init() error

func (*DB) Open

func (db *DB) Open() error

func (*DB) SetDir

func (db *DB) SetDir(d string)

func (*DB) Update2FAsecret

func (db *DB) Update2FAsecret(secret string, email string) error

func (*DB) UpdateAccountInfo

func (db *DB) UpdateAccountInfo(acc bw.Account) error

func (*DB) UpdateCipher

func (db *DB) UpdateCipher(id string, cipher bw.Cipher, owner string) error

func (*DB) UpdateFolder

func (db *DB) UpdateFolder(newFolder bw.Folder, owner string) error

func (*DB) UpdateOrgUser

func (db *DB) UpdateOrgUser(user bw.OrgUserwId) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL