aws-vault: Index | Files

package keyring

import ""


Package Files

array.go file.go keyring.go kwallet.go secrets.go


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


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

func SupportedBackends Uses

func SupportedBackends() []string

type ArrayKeyring Uses

type ArrayKeyring struct {
    // contains filtered or unexported fields

func NewArrayKeyring Uses

func NewArrayKeyring(initial []Item) *ArrayKeyring

func (*ArrayKeyring) Get Uses

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

func (*ArrayKeyring) Keys Uses

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

func (*ArrayKeyring) Remove Uses

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

func (*ArrayKeyring) Set Uses

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

type Item Uses

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

type Keyring Uses

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

func Open Uses

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

Package keyring imports 12 packages (graph). Updated 2019-10-19. Refresh now. Tools for package owners.