Documentation
¶
Index ¶
- Variables
- func GeneratePassword(length, numDigits, numSymbols int, noUpper, allowRepeat bool) (string, error)
- type Dir
- type Login
- type Safe
- func (s *Safe) Close() (err error)
- func (s *Safe) CreateTag(name string) (*safe.Tag, error)
- func (s *Safe) CreateVault(name, tag string, data Login) (*safe.Vault, error)
- func (s *Safe) DeleteTag(name string) error
- func (s *Safe) DeleteVault(name, tag string) error
- func (s *Safe) ListTagByNames() ([]*safe.Tag, error)
- func (s *Safe) ListVaultByNames(tag, prefix string) ([]*safe.Vault, error)
- func (s *Safe) LogOut()
- func (s *Safe) Logged() error
- func (s *Safe) Login(pass string) error
- func (s *Safe) Root() Dir
- func (s *Safe) SignIn(pass string) (ok bool)
- func (s *Safe) SignUp(pass string) (err error)
- func (s *Safe) UpdateVault(name, tag string, data Login) (*safe.Vault, error)
- func (s *Safe) Vault(name, tag string) (*safe.Vault, error)
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotRegistered ... ErrNotFound = errors.New("no database") // ErrNotLogged ... ErrNotLogged = errors.New("not logged in") )
Common errors
Functions ¶
Types ¶
type Dir ¶
type Dir string
Dir defines the current workspace. An empty Dir is treated as ".".
type Login ¶
type Login struct {
Username string `json:"user"`
Password string `json:"pass"`
URL string `json:"url,omitempty"`
Note string `json:"note,omitempty"`
}
Login contains all login's data as plaintext.
type Safe ¶
type Safe struct {
// contains filtered or unexported fields
}
Safe ...
func (*Safe) CreateVault ¶
CreateVault ...
func (*Safe) ListTagByNames ¶
ListTagByNames ...
func (*Safe) ListVaultByNames ¶
ListVaultByNames ...
func (*Safe) UpdateVault ¶
UpdateVault ...
Click to show internal directories.
Click to hide internal directories.