gkeyring

package module
v0.0.0-...-8da3580 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

README

Gnome Keyring Go Library

Library for accessing Linux Gnome Keyring using DBUS.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is the expected error if the secret isn't found in the
	// keyring.
	ErrNotFound = fmt.Errorf("secret not found in keyring")
)

Functions

func Delete

func Delete(service, user string) error

Delete deletes a secret, identified by service & user, from the keyring.

func Get

func Get(service, user string) (string, error)

Get gets a secret from the keyring given a service name and a user.

func List

func List() (map[string]string, error)

List all secret items

func Set

func Set(service, user, pass string) error

Set stores user and pass in the keyring under the defined service name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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