passmgr: github.com/urld/passmgr Index | Files | Directories

package passmgr

import "github.com/urld/passmgr"

Package passmgr defines a store for credentials.

Index

Package Files

passmgr.go

type Store Uses

type Store interface {

    // List retrieves a list of all Subjects known to the store.
    // The Secrets map of the returned Subjects is empty. To retrieve the
    // complete Subject including its secrets, the Load method needs to be
    // used.
    List() []Subject

    // Load looks up a Subject, identified by its User and URL fields.
    // It returns the complete Subject including its secrets and a flag
    // indicating whether the lookup was successful or not.
    Load(Subject) (s Subject, ok bool)

    // Store adds a new Subject to the store, or updates an existing one.
    Store(Subject)

    // Delete removes a subject from the store. It returns false if the
    // Subject to delete could not be found.
    Delete(Subject) bool
}

Store provides access to stored credentials.

type Subject Uses

type Subject struct {
    User    string
    URL     string
    Secrets map[string]string
}

Subject contains various secrets for a given user name. Usually the URL and User fields are used as unique identifiers.

Directories

PathSynopsis
cmd/passmgrPassmgr is a simple password manager which allows to securely store passphrases and retrieve them via commandline.
filestorePackage filestore implements a secure passmgr.Store.

Package passmgr is imported by 2 packages. Updated 2017-07-01. Refresh now. Tools for package owners.