libsecret

package module
v0.0.0-...-a6f4afe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2016 License: MIT Imports: 2 Imported by: 13 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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

func (collection *Collection) CreateItem(label string, secret *Secret, replace bool) (*Item, error)

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 NewItem

func NewItem(conn *dbus.Conn, path dbus.ObjectPath) *Item

func (*Item) Delete

func (item *Item) Delete() error

Delete (OUT ObjectPath Prompt);

func (*Item) GetSecret

func (item *Item) GetSecret(session *Session) (*Secret, error)

GetSecret (IN ObjectPath session, OUT Secret secret);

func (*Item) Label

func (item *Item) Label() (string, error)

READWRITE String Label;

func (*Item) Locked

func (item *Item) Locked() (bool, error)

READ Boolean Locked;

func (Item) Path

func (item Item) Path() dbus.ObjectPath

type Prompt

type Prompt struct {
	// contains filtered or unexported fields
}

func NewPrompt

func NewPrompt(conn *dbus.Conn, path dbus.ObjectPath) *Prompt

func (Prompt) Path

func (prompt Prompt) Path() dbus.ObjectPath

func (*Prompt) Prompt

func (prompt *Prompt) Prompt() (*dbus.Variant, error)

Prompt (IN String window-id);

type Secret

type Secret struct {
	Session     dbus.ObjectPath
	Parameters  []byte
	Value       []byte
	ContentType string
}

func NewSecret

func NewSecret(session *Session, params []byte, value []byte, contentType string) *Secret

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService() (*Service, error)

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

func (service *Service) Open() (*Session, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址