Documentation
¶
Overview ¶
Package keyring provides a cross-platform secure keyring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSystem ¶
func CheckSystem() error
CheckSystem returns error if system keyring (dbus+libsecret) is not available.
Types ¶
type Keyring ¶
type Keyring interface {
// Name of the keyring implementation.
Name() string
// Get bytes.
Get(id string) ([]byte, error)
// Set bytes.
Set(id string, data []byte) error
// Delete bytes.
Delete(id string) (bool, error)
// Exists returns true if exists.
Exists(id string) (bool, error)
// Reset removes all data.
Reset() error
Items(prefix string) ([]*Item, error)
}
Keyring is the interface used to store data.
Click to show internal directories.
Click to hide internal directories.