Version: v3.7.1+incompatible Latest Latest

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

Go to latest
Published: Mar 14, 2017 License: MIT Imports: 12 Imported by: 0




View Source
const (
	SecretServiceBackend string = "secret-service"
	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"


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")


func SupportedBackends

func SupportedBackends() []string


type ArrayKeyring

type ArrayKeyring struct {
	// contains filtered or unexported fields

func NewArrayKeyring

func NewArrayKeyring(initial []Item) *ArrayKeyring

func (*ArrayKeyring) Get

func (k *ArrayKeyring) Get(key string) (Item, error)

func (*ArrayKeyring) Keys

func (k *ArrayKeyring) Keys() ([]string, error)

func (*ArrayKeyring) Remove

func (k *ArrayKeyring) Remove(key string) error

func (*ArrayKeyring) Set

func (k *ArrayKeyring) Set(i Item) error

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