keyring

package module
v0.0.0-...-2fb8c39 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2015 License: ISC Imports: 6 Imported by: 2

README

keyring

Let your golang programs store and access passwords in a secure way.

Documentation

Overview

Package keyring provides functions for reading and writing passwords securely.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedOS = errors.New("not supported")

Functions

This section is empty.

Types

type Keyring

type Keyring interface {
	// Set sets a password for the service and username.
	Set(service, username string, password []byte) error

	// Get returns the password for the service and username if exists.
	Get(service, username string) ([]byte, error)

	// Delete deletes a password belongs to the service and username.
	Delete(service, username string) error
}

Keyring defines the Keyring client available on the platform.

func New

func New() (Keyring, error)

New returns the Keyring client available on the platform.

Jump to

Keyboard shortcuts

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