store

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Login    string `json:"login"`
	Password string `json:"password"`
	Realm    string `json:"realm"`
	Note     string `json:"note"`
	// contains filtered or unexported fields
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Create

func Create(fileName string, password string, passwordStretch int) (*Store, error)

func Open

func Open(fileName string, password string) (*Store, error)

func (*Store) AddCredential

func (store *Store) AddCredential(credential *Credential)

func (*Store) AllCredentials

func (store *Store) AllCredentials() []*Credential

func (*Store) Close

func (store *Store) Close()

func (*Store) DeleteCredential

func (store *Store) DeleteCredential(credential *Credential)

func (*Store) FindCredentials

func (store *Store) FindCredentials(query []string) []*Credential

func (*Store) UpdateCredential

func (store *Store) UpdateCredential(credential *Credential)

func (*Store) UpdateMasterPassword

func (store *Store) UpdateMasterPassword(password string, passwordStretch int) error

Jump to

Keyboard shortcuts

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