Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) AddAccount(acc ds.Account) error
- func (db *DB) AddAttachment(cipherId string, attachment ds.Attachment) (ds.Cipher, error)
- func (db *DB) AddCipher(cipher ds.Cipher, accId string) (ds.Cipher, error)
- func (db *DB) AddFolder(accountId, name string) (ds.Folder, error)
- func (db *DB) Close()
- func (db *DB) DeleteAttachment(cipherId, attachmentId string) (url string, err error)
- func (db *DB) DeleteCipher(accId, cipherId string) error
- func (db *DB) DeleteFolder(folderUUID string) error
- func (db *DB) GetAccount(s string) (ds.Account, error)
- func (db *DB) GetAttachment(cipherId, attachmentId string) (ds.Attachment, error)
- func (db *DB) GetCiphers(accId string) ([]ds.Cipher, error)
- func (db *DB) GetFolders(accId string) ([]ds.Folder, error)
- func (db *DB) Init() error
- func (db *DB) Open() error
- func (db *DB) RenameFolder(name, folderUUID string) (ds.Folder, error)
- func (db *DB) SaveCSV(csvs []ds.CSV, email string) error
- func (db *DB) SetDir(d string)
- func (db *DB) UpdateAccount(acc ds.Account) error
- func (db *DB) UpdateCipher(cipher ds.Cipher, accId string) (ds.Cipher, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var StdDB = New()
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddAttachment ¶
func (*DB) DeleteAttachment ¶
func (*DB) DeleteCipher ¶
func (*DB) DeleteFolder ¶
func (*DB) GetAttachment ¶
func (db *DB) GetAttachment(cipherId, attachmentId string) (ds.Attachment, error)
Click to show internal directories.
Click to hide internal directories.