Documentation
¶
Index ¶
- Constants
- Variables
- func CP(store, name, newname string, force bool) (o, n string, err error)
- func Edit(store, name string) (err error)
- func Find(store, pattern string) (matches []string, err error)
- func Generate(store string, noSym, inPlace, strong bool, args []string) (file string, err error)
- func InitStore(path string) (err error)
- func Insert(store, name string, echo, multi, force bool) (file string, err error)
- func LS(store, subdir string)
- func MV(store, name, newname string, force bool) (o, n string, err error)
- func RM(store, name string, force, recursive bool) (err error)
- func ReadPin() ([]byte, error)
- func ReadRune() (r rune, err error)
- func ReadYesNo() (bool, error)
- func Readline() (r []byte, err error)
- func Show(store, name string) (err error)
- func Tree(indent int, seal, sidebar bool, entries ...string)
Constants ¶
View Source
const ( DEFAULT_PASS_LENGTH = 16 TARGET_ENTROPY = 80 )
View Source
const ( TREE_MID = "├──" TREE_END = "└──" )
View Source
const (
DIR_DELIM = "/"
)
Variables ¶
View Source
var ( ErrNoPassName = errors.New("no password name was given") ErrEntrotyTooLow = errors.New("password entropy is too low") )
View Source
var (
ErrNoCredentials = errors.New("no credentials found")
)
Functions ¶
func Generate ¶
Main handler for 'generate' subcommand. It generates a password according to given configuration, encrypts it for all recipients under given store, and persist it, and returns the generated password and path to created/modified pass file.
func InitStore ¶
Initializes the passage store containing credentials and recipient public keys.
If no path is given, the store is created under '${HOME}/.passage-store' with following structure: - '.recipients': file containing public keys to encrypt passes with. - './': root directory containing encrypted passwords
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.