sqlite

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 10 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) AddFolder

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

func (*DB) Close

func (db *DB) Close()

func (*DB) DeleteCipher

func (db *DB) DeleteCipher(owner string, ciphID string) error

Important to check that the owner is correct before an update!

func (*DB) GetAccount

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

func (*DB) GetCipher

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

func (*DB) GetCiphers

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

func (*DB) GetFolders

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

func (*DB) Init

func (db *DB) Init() error

func (*DB) NewCipher

func (db *DB) NewCipher(ciph bw.Cipher, owner string) (bw.Cipher, 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(newData bw.Cipher, owner string, ciphID string) error

Important to check that the owner is correct before an update!

func (*DB) UpdateFolder

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

Jump to

Keyboard shortcuts

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