keyring

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeychainBackend string = "keychain"
	KWalletBackend  string = "kwallet"
	FileBackend     string = "file"
)
View Source
const (
	DBUS_SERVICE_NAME = "org.kde.kwalletd"
	DBUS_PATH         = "/modules/kwalletd"
	APPID             = "aws-vault"
	FOLDER            = "aws-vault"
)

Variables

View Source
var DefaultBackend = FileBackend
View Source
var ErrKeyNotFound = errors.New("The specified item could not be found in the keyring.")
View Source
var ErrNoAvailImpl = errors.New("Specified keyring backend not available")

Functions

func SupportedBackends

func SupportedBackends() []string

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, backend string) (Keyring, error)

Jump to

Keyboard shortcuts

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