Documentation ¶
Index ¶
Constants ¶
View Source
const ( MinPasswordLength = 12 FileMode = 0600 )
Config
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PasswordManager ¶
type PasswordManager struct {
// contains filtered or unexported fields
}
Password manager
func NewPasswordManager ¶
func NewPasswordManager(passwordPath string) *PasswordManager
Create new password manager
func (*PasswordManager) GetPassword ¶
func (pm *PasswordManager) GetPassword() (string, error)
Get the password
func (*PasswordManager) IsPasswordSet ¶
func (pm *PasswordManager) IsPasswordSet() bool
Check if the password has been set
func (*PasswordManager) SetPassword ¶
func (pm *PasswordManager) SetPassword(password string) error
Set the password
Click to show internal directories.
Click to hide internal directories.