Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAttribute ¶
func WithAttribute(name, value string) option
WithAttribute adds an attribute to the schema representing the cache. Storage supports up to 2 attributes.
Types ¶
type Accessor ¶
type Accessor interface { Delete(context.Context) error Read(context.Context) ([]byte, error) Write(context.Context, []byte) error }
Accessor accesses data storage.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage uses libsecret to store data with a DBus Secret Service such as GNOME Keyring or KDE Wallet. The Service must be unlocked before Storage can access it. Unlocking typically requires user interaction, and some systems may be unable to unlock the Service in a headless environment such as an SSH session.
Click to show internal directories.
Click to hide internal directories.