lastpass

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(username string, password string) error

Login using lastpass-cli

func Logout

func Logout()

Logout using lastpass-cli

func VerifyCliExistsOrDie

func VerifyCliExistsOrDie()

VerifyCliExistsOrDie verifies that lastpass-cli is properly installed

Types

type LastPassSecret

type LastPassSecret struct {
	ID              string `json:"id"`
	Name            string `json:"name"`
	Fullname        string `json:"fullname"`
	Username        string `json:"username"`
	Password        string `json:"password"`
	LastModifiedGmt string `json:"last_modified_gmt"`
	LastTouch       string `json:"last_touch"`
	Group           string `json:"group"`
	URL             string `json:"url"`
	Note            string `json:"note"`
}

LastPassSecret represents a LastPass secret For more examples see example/lpass-examples.txt https://mholt.github.io/json-to-go/

func RequestSecrets

func RequestSecrets(group string, name string) ([]LastPassSecret, error)

RequestSecrets returns one or more secrets using lastpass-cli

Jump to

Keyboard shortcuts

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