db

package
v0.0.0-...-fddc261 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(db_file string) ([]byte, error)

Types

type Account

type Account struct {
	User  string `json:"user"`
	Pass  string `json:"pass"`
	TFKey string `json:"2fakey"`
	Date  string `json:"date"`
}

type Db

type Db struct {
	Path     string              `json:"-"`
	Accounts map[string]*Account `json:"accounts"`
}

func Create

func Create(db_file string) (*Db, error)

func Open

func Open(db_file string) (*Db, error)

func (*Db) Remove

func (db *Db) Remove() error

func (*Db) Search

func (db *Db) Search(query string, fuzzy bool) *Account

func (*Db) Sync

func (db *Db) Sync(do_backup bool) error

Jump to

Keyboard shortcuts

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