Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPassword ¶
method used for inserting a new password into the database
func GeneratePassword ¶
method used for generating a password of given length
func InitBase ¶
func InitBase() error
method used for creating directories and a DB file on the first run of PM
func RemovePassword ¶
method used for removing a password from the database
Types ¶
type Password ¶
type Password struct {
Id int
Name string
Resource string
Password string
Username string
Comment string
Group string
}
Password struct holds every database field
func SelectByGroup ¶
method used for selecting passwords when the -g flag is provided
func SelectByGroupAndName ¶
method used for selecting passwords when both -n and -g flags are provided
func SelectByName ¶
method used for selecting passwords when the -n flag is provided
Click to show internal directories.
Click to hide internal directories.