Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(user, path string, encryptor encryption.Encryptor) *Database
Creates a connection to database. `path` is a path to your database, e.g. $HOME/passman/supersecret.db If you want to create a new database, put your desirable path to it as an argument.
func (*Database) Drop ¶
func (d *Database) Drop()
Deletes the file where the entire database resides.
func (*Database) FindByService ¶
Retrieves records from `storage` table matching by service.
type EncryptedRecord ¶
type EncryptedRecord struct { Data []byte // contains filtered or unexported fields }
func (EncryptedRecord) Decrypt ¶
func (r EncryptedRecord) Decrypt(encryptor encryption.Encryptor) (Record, error)
type Record ¶
func (Record) Encrypt ¶
func (r Record) Encrypt(encryptor encryption.Encryptor) EncryptedRecord
func (Record) MarshalJSON ¶
func (*Record) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.