Documentation
¶
Index ¶
- Constants
- type Collection
- func (collection *Collection) CreateItem(label string, secret *Secret, replace bool) (*Item, error)
- func (collection *Collection) Delete() error
- func (collection *Collection) Items() ([]Item, error)
- func (collection *Collection) Locked() (bool, error)
- func (collection Collection) Path() dbus.ObjectPath
- func (collection *Collection) SearchItems(profile string) ([]Item, error)
- type DBusObject
- type Item
- type Prompt
- type Secret
- type Service
- func (service *Service) Collections() ([]Collection, error)
- func (service *Service) CreateCollection(label string) (*Collection, error)
- func (service *Service) Lock(object DBusObject) error
- func (service *Service) Open() (*Session, error)
- func (service Service) Path() dbus.ObjectPath
- func (service *Service) Unlock(object DBusObject) error
- type Session
Constants ¶
const ( DBusServiceName = "org.freedesktop.secrets" DBusPath = "/org/freedesktop/secrets" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func NewCollection ¶
func NewCollection(conn *dbus.Conn, path dbus.ObjectPath) *Collection
func (*Collection) CreateItem ¶
CreateItem (IN Dict<String,Variant> properties, IN Secret secret, IN Boolean replace, OUT ObjectPath item, OUT ObjectPath prompt);
func (*Collection) Delete ¶
func (collection *Collection) Delete() error
Delete (OUT ObjectPath prompt);
func (*Collection) Items ¶
func (collection *Collection) Items() ([]Item, error)
READ Array<ObjectPath> Items;
func (*Collection) Locked ¶
func (collection *Collection) Locked() (bool, error)
READ Boolean Locked;
func (Collection) Path ¶
func (collection Collection) Path() dbus.ObjectPath
func (*Collection) SearchItems ¶
func (collection *Collection) SearchItems(profile string) ([]Item, error)
SearchItems (IN Dict<String,String> attributes, OUT Array<ObjectPath> results);
type DBusObject ¶
type DBusObject interface {
Path() dbus.ObjectPath
}
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (Item) Path ¶
func (item Item) Path() dbus.ObjectPath
type Prompt ¶
type Prompt struct {
// contains filtered or unexported fields
}
func (Prompt) Path ¶
func (prompt Prompt) Path() dbus.ObjectPath
type Secret ¶
type Secret struct { Session dbus.ObjectPath Parameters []byte Value []byte ContentType string }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) Collections ¶
func (service *Service) Collections() ([]Collection, error)
READ Array<ObjectPath> Collections;
func (*Service) CreateCollection ¶
func (service *Service) CreateCollection(label string) (*Collection, error)
CreateCollection (IN Dict<String,Variant> properties, IN String alias, OUT ObjectPath collection, OUT ObjectPath prompt);
func (*Service) Lock ¶
func (service *Service) Lock(object DBusObject) error
Lock (IN Array<ObjectPath> objects, OUT Array<ObjectPath> locked, OUT ObjectPath Prompt);
func (*Service) Open ¶
OpenSession (IN String algorithm, IN Variant input, OUT Variant output, OUT ObjectPath result);
func (Service) Path ¶
func (service Service) Path() dbus.ObjectPath
func (*Service) Unlock ¶
func (service *Service) Unlock(object DBusObject) error
Unlock (IN Array<ObjectPath> objects, OUT Array<ObjectPath> unlocked, OUT ObjectPath prompt);
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(conn *dbus.Conn, path dbus.ObjectPath) *Session
func (Session) Path ¶
func (session Session) Path() dbus.ObjectPath