Versions in this module Expand all Collapse all v1 v1.0.1 Feb 28, 2020 v1.0.0 Apr 18, 2019 Changes in this version + const AlgDH + const AlgPlain + const CollectionInterface + const DefaultCollection + const ItemInterface + const PromptInterface + const SecretServiceDest + const SecretServicePath + const SecretServicePrefix + const ServiceInterface + const SessionCollection + const SessionInterface + func ErrInvalidType(expected string, value interface{}) error + type Collection interface + CreateItem func(session dbus.ObjectPath, label string, attr map[string]string, secret []byte, ...) (Item, error) + Delete func() error + GetAllItems func() ([]Item, error) + GetItem func(name string) (Item, error) + GetLabel func() (string, error) + Locked func() (bool, error) + Path func() dbus.ObjectPath + SearchItems func(attrs map[string]string) ([]Item, error) + SetLabel func(l string) error + func GetCollection(conn *dbus.Conn, path dbus.ObjectPath) (Collection, error) + type Item interface + Delete func() error + GetAttributes func() (map[string]string, error) + GetCreated func() (time.Time, error) + GetLabel func() (string, error) + GetModified func() (time.Time, error) + GetSecret func(session dbus.ObjectPath) (*Secret, error) + Locked func() (bool, error) + SetAttributes func(map[string]string) error + SetLabel func(string) error + SetSecret func(dbus.ObjectPath, []byte, string) error + Unlock func() (bool, error) + func GetItem(conn *dbus.Conn, path dbus.ObjectPath) (Item, error) + type Prompt interface + Dismiss func() error + Path func() dbus.ObjectPath + Prompt func(windowID string) (<-chan *dbus.Variant, error) + func GetPrompt(conn *dbus.Conn, path dbus.ObjectPath) Prompt + type Secret struct + ContentType string + Parameters []byte + Session dbus.ObjectPath + Value []byte + type SecretService interface + CreateCollection func(label string, alias string) (Collection, error) + GetAllCollections func() ([]Collection, error) + GetCollection func(name string) (Collection, error) + GetDefaultCollection func() (Collection, error) + GetSecrets func(paths []dbus.ObjectPath, session dbus.ObjectPath) (map[dbus.ObjectPath]*Secret, error) + Lock func(paths []dbus.ObjectPath) ([]dbus.ObjectPath, error) + OpenSession func() (Session, error) + ReadAlias func(name string) (dbus.ObjectPath, error) + RemoveAlias func(name string) error + SearchItems func(map[string]string) (unlocked []Item, locked []Item, err error) + SetAlias func(name string, path dbus.ObjectPath) error + Unlock func(paths []dbus.ObjectPath) ([]dbus.ObjectPath, error) + func GetSecretService(conn *dbus.Conn) (SecretService, error) + type Session interface + Close func() error + Path func() dbus.ObjectPath + func GetSession(conn *dbus.Conn, path dbus.ObjectPath) (Session, error)