Documentation ¶
Index ¶
- type Password
- type Passwords
- func (p *Passwords) Del(id string)
- func (p *Passwords) Export() ([]byte, error)
- func (p *Passwords) Get(id string) *Password
- func (p *Passwords) Import(data []byte) error
- func (p *Passwords) List() []*Password
- func (p *Passwords) Set(alias, username, password string)
- func (p *Passwords) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Password ¶
type Password struct { ID string `json:"id"` Alias string `json:"alias"` Username string `json:"username"` Password string `json:"password"` }
Password is the struct that represents a password, it has an username and a password.
type Passwords ¶
type Passwords struct {
// contains filtered or unexported fields
}
Passwords is the struct that represents a collection of passwords, it is a map of alias to password.
Click to show internal directories.
Click to hide internal directories.