show

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// All indicates SearchSites should return all sites from the vault.
	All searchType = iota
	// One indicates SearchSites should return only one site from the vault.
	// It is used when printing a site.
	One
	// Search indicates that SearchSites should return all sites found that
	// match that contain the searchFor string
	Search
)

Variables

This section is empty.

Functions

func Find

func Find(frag string)

Find will search the vault for all occurences of frag in the site name.

func ListAll

func ListAll()

ListAll will print out all contents of the vault.

func SearchAll

func SearchAll(st searchType, searchFor string) (allSites map[string][]pio.SiteInfo, allErrors []error)

SearchAll will perform a search of searchType with optionally used searchFor. It will return all sites as a map of group names to pio.SiteInfo types. That way, callers of this function do not need to sort the sites by group themselves.

func Site

func Site(path string, copyPassword bool)

Site will print out the password of the site that matches path

Types

This section is empty.

Jump to

Keyboard shortcuts

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