keyring

package
Version: v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeychainBackend backend = "osxkeychain"
	KWalletBackend  backend = "kwallet"
)
View Source
const (
	DBUS_SERVICE_NAME = "org.kde.kwalletd"
	DBUS_PATH         = "/modules/kwalletd"
	APPID             = "aws-vault"
	FOLDER            = "aws-vault"
)

Variables

View Source
var ErrKeyNotFound = errors.New("The specified item could not be found in the keyring.")
View Source
var ErrNoAvailImpl = errors.New("No keyring implementation for your platform available.")

Functions

This section is empty.

Types

type Item

type Item struct {
	Key         string
	Data        []byte
	Label       string
	Description string
	TrustSelf   bool
}

type Keyring

type Keyring interface {
	Get(key string) (Item, error)
	Set(item Item) error
	Remove(key string) error
	Keys() ([]string, error)
}

func Open

func Open(name string, prefer ...backend) (Keyring, error)

Jump to

Keyboard shortcuts

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