secret.collection

Module for [Collection] class

Types 3

A proxy object representing a collection of secrets in the Secret Service.

#SecretCollection represents a collection of secret items stored in the Secret Service.

A collection can be in a locked or unlocked state. Use method@SecretService.lock or method@SecretService.unlock to lock or unlock the collection.

Use the property@SecretCollection:items property or method@SecretCollection.get_items to lookup the items in the collection. There may not be any items exposed when the collection is locked.

Methods
GType _gType() @property
Collection self()Returns `this`, for use in `with` statements.
CollectionGidBuilder builder()Get builder for [secret.collection.Collection] Returns: New builder object
ulong created() @propertyGet `created` property. Returns: The date and time (in seconds since the UNIX epoch) that this collection was created.
void created(ulong propval) @propertySet `created` property. Params: propval = The date and time (in seconds since the UNIX epoch) that this collection was created.
secret.types.CollectionFlags flags() @propertyGet `flags` property. Returns: A set of flags describing which parts of the secret collection have been initialized.
string label() @propertyGet `label` property. Returns: The human readable label for the collection.
void label(string propval) @propertySet `label` property. Params: propval = The human readable label for the collection.
bool locked() @propertyGet `locked` property. Returns: Whether the collection is locked or not.
ulong modified() @propertyGet `modified` property. Returns: The date and time (in seconds since the UNIX epoch) that this collection was last modified.
void modified(ulong propval) @propertySet `modified` property. Params: propval = The date and time (in seconds since the UNIX epoch) that this collection was last modified.
secret.service.Service service() @propertyGet `service` property. Returns: The `class@Service` object that this collection is associated with and uses to interact with the actual D-Bus Secret Service.
void create(secret.service.Service service, string label, string alias_, secret.types.CollectionCreateFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Create a new collection in the secret service.
secret.collection.Collection createFinish(gio.async_result.AsyncResult result)Finish operation to create a new collection in the secret service.
secret.collection.Collection createSync(secret.service.Service service, string label, string alias_, secret.types.CollectionCreateFlags flags, gio.cancellable.Cancellable cancellable = null)Create a new collection in the secret service.
void forAlias(secret.service.Service service, string alias_, secret.types.CollectionFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as 'default'.
secret.collection.Collection forAliasFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation to lookup which collection is assigned to an alias.
secret.collection.Collection forAliasSync(secret.service.Service service, string alias_, secret.types.CollectionFlags flags, gio.cancellable.Cancellable cancellable = null)Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as `default`.
void delete_(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Delete this collection.
bool deleteFinish(gio.async_result.AsyncResult result)Complete operation to delete this collection.
bool deleteSync(gio.cancellable.Cancellable cancellable = null)Delete this collection.
ulong getCreated()Get the created date and time of the collection.
secret.types.CollectionFlags getFlags()Get the flags representing what features of the #SecretCollection proxy have been initialized.
secret.item.Item[] getItems()Get the list of items in this collection. Returns: a list of items, when done, the list should be freed with [glib.list.List.free], and each item should be released with [gobject.object.ObjectWrap....
string getLabel()Get the label of this collection. Returns: the label, which should be freed with `funcGLib.free`
bool getLocked()Get whether the collection is locked or not.
ulong getModified()Get the modified date and time of the collection.
secret.service.Service getService()Get the Secret Service object that this collection was created with. Returns: the Secret Service object
void loadItems(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service.
bool loadItemsFinish(gio.async_result.AsyncResult result)Complete an asynchronous operation to ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service.
bool loadItemsSync(gio.cancellable.Cancellable cancellable = null)Ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service. This affects the result of [secret.collection.Collection.getItems].
void refresh()Refresh the properties on this collection. This fires off a request to refresh, and the properties will be updated later.
void search(secret.schema.Schema schema, string[string] attributes, secret.types.SearchFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Search for items matching the attributes in the collection. The attributes should be a table of string keys and string values.
secret.item.Item[] searchFinish(gio.async_result.AsyncResult result)Complete asynchronous operation to search for items in a collection.
secret.item.Item[] searchSync(secret.schema.Schema schema, string[string] attributes, secret.types.SearchFlags flags, gio.cancellable.Cancellable cancellable = null)Search for items matching the attributes in the collection. The attributes should be a table of string keys and string values.
void setLabel(string label, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Set the label of this collection.
bool setLabelFinish(gio.async_result.AsyncResult result)Complete asynchronous operation to set the label of this collection.
bool setLabelSync(string label, gio.cancellable.Cancellable cancellable = null)Set the label of this collection.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T created(ulong propval)Set `created` property. Params: propval = The date and time (in seconds since the UNIX epoch) that this collection was created. Returns: Builder instance for fluent chaining
T flags(secret.types.CollectionFlags propval)Set `flags` property. Params: propval = A set of flags describing which parts of the secret collection have been initialized. Returns: Builder instance for fluent chaining
T label(string propval)Set `label` property. Params: propval = The human readable label for the collection.
T modified(ulong propval)Set `modified` property. Params: propval = The date and time (in seconds since the UNIX epoch) that this collection was last modified. Returns: Builder instance for fluent chaining
T service(secret.service.Service propval)Set `service` property. Params: propval = The `class@Service` object that this collection is associated with and uses to interact with the actual D-Bus Secret Service. Returns: Builder instance for...

Fluent builder for [secret.collection.Collection]

Methods