Documentation ¶
Overview ¶
Package passwdstore implements basic functionality for storing key value pairs. It does this with proper encryption and hashing mechanism in a file securely. Also note that this package only works after you run the Init function which creates the password store file.
Index ¶
- Variables
- func ChangePasswd(np, op []byte) error
- func Clear(p []byte) error
- func Delete(k string, p []byte) error
- func Get(k string, p []byte) (string, error)
- func Init(f string) error
- func ListEntries(p []byte) ([][2]string, error)
- func ListKeys(p []byte) ([]string, error)
- func Put(k, v string, p []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFilePathNotAbsolute is the error thrown when // the passwdstore.Init function does not get an absolute path as an argument. ErrFilePathNotAbsolute = errors.New("passwdstore: given filepath not absolute") // ErrPasswdFileManuallyEdited is the error thrown when // the passwdstore file at $HOME/.vault/.passwdstore is not parsable as it is manually edited. ErrPasswdFileManuallyEdited = errors.New("passwdstore: password file manually edited") // ErrPasswdFileIntegrityFail is the error thrown when // the passwdstore file at $HOME/.vault/.passwdstore fails // the integrity check which means that the contents are edited. ErrPasswdFileIntegrityFail = errors.New("passwdstore: password file integrity fail") // ErrVaultPasswdNotSet is the error thrown when the // vault password is empty or not set. Use the passwdstore.ChangePasswd // function to set the password initially as it is empty. ErrVaultPasswdNotSet = errors.New("passwdstore: vault password not set") )
Functions ¶
func ChangePasswd ¶
ChangePasswd changes the password for the store.
func ListEntries ¶ added in v1.1.0
ListEntries lists all the key value pairs in the store.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.