Versions in this module Expand all Collapse all v1 v1.2.0 Oct 14, 2017 Changes in this version + var ErrInvalidEmail = fmt.Errorf("invalid username or password") + var ErrInvalidGoogleAuthCode = fmt.Errorf("googleauthfailed") + var ErrInvalidYubiKey = fmt.Errorf("yubikeyrestricted") + type ConfigFunc func(opts *ConfigOptions) + func WithMultiFactor(code string) ConfigFunc + type ConfigOptions struct v1.1.0 Oct 12, 2017 v1.0.0 Oct 11, 2017 Changes in this version + const CaseInsensitive + const CaseSensitive + const Id + const Name + const Regex + const SubstringInsensitive + const SubstringSensitive + const Url + const Username + var ErrAccountNotFound = fmt.Errorf("account not found") + var ErrInvalidPassword = fmt.Errorf("invalid username or password") + type Account struct + Group string + Id string + Name string + Notes string + Password string + Url string + Username string + func (a Account) String() string + type Field uint32 + type SearchMethod uint32 + type Vault struct + func New(email, password string) (*Vault, error) + func (lp *Vault) CreateAccount(account *Account) (*Account, error) + func (lp *Vault) DeleteAccount(account *Account) error + func (lp *Vault) DeleteAccountById(id string) error + func (lp *Vault) UpdateAccount(account *Account) (*Account, error) + func (lp Vault) Email() string + func (lp Vault) GetAccount(id string) (*Account, error) + func (lp Vault) GetAccounts() ([]*Account, error) + func (lp Vault) Search(value string, field Field, method SearchMethod) ([]*Account, error)