passwords

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

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) DeletePassword

func (pm *PasswordManager) DeletePassword() error

Delete the password

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL