Documentation
¶
Index ¶
- Variables
- type PasswordStore
- func (s *PasswordStore) Create(masterPassword string) error
- func (s *PasswordStore) Delete() error
- func (s *PasswordStore) Exists() bool
- func (s *PasswordStore) Import() error
- func (s *PasswordStore) List() ([]string, error)
- func (s *PasswordStore) Open(masterPassword string) error
- func (s *PasswordStore) Opened() bool
- func (s *PasswordStore) Save(name, password string) error
- func (s *PasswordStore) ShowPassword(name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotExists = errors.New("password file not exists")
)
Functions ¶
This section is empty.
Types ¶
type PasswordStore ¶
type PasswordStore struct {
// contains filtered or unexported fields
}
func NewPasswordStore ¶ added in v0.1.2
func NewPasswordStore(path string) *PasswordStore
func (*PasswordStore) Create ¶
func (s *PasswordStore) Create(masterPassword string) error
func (*PasswordStore) Delete ¶
func (s *PasswordStore) Delete() error
func (*PasswordStore) Exists ¶ added in v0.1.2
func (s *PasswordStore) Exists() bool
func (*PasswordStore) Import ¶
func (s *PasswordStore) Import() error
func (*PasswordStore) List ¶
func (s *PasswordStore) List() ([]string, error)
func (*PasswordStore) Open ¶ added in v0.1.2
func (s *PasswordStore) Open(masterPassword string) error
func (*PasswordStore) Opened ¶ added in v0.1.2
func (s *PasswordStore) Opened() bool
func (*PasswordStore) Save ¶
func (s *PasswordStore) Save(name, password string) error
now it take first password file and append password into it
func (*PasswordStore) ShowPassword ¶ added in v0.1.2
func (s *PasswordStore) ShowPassword(name string) (string, error)
Click to show internal directories.
Click to hide internal directories.