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 _getGType() static nothrow
GType _gType() @property nothrow
Collection self() nothrowReturns `this`, for use in `with` statements.
CollectionGidBuilder builder() static nothrowGet builder for [secret.collection.Collection] Returns: New builder object
ulong created() @property nothrowGet `created` property. Returns: The date and time (in seconds since the UNIX epoch) that this collection was created.
void created(ulong propval) @property nothrowSet `created` property. Params: propval = The date and time (in seconds since the UNIX epoch) that this collection was created.
secret.types.CollectionFlags flags() @property nothrowGet `flags` property. Returns: A set of flags describing which parts of the secret collection have been initialized.
string label() @property nothrowGet `label` property. Returns: The human readable label for the collection.
void label(string propval) @property nothrowSet `label` property. Params: propval = The human readable label for the collection.
bool locked() @property nothrowGet `locked` property. Returns: Whether the collection is locked or not.
ulong modified() @property nothrowGet `modified` property. Returns: The date and time (in seconds since the UNIX epoch) that this collection was last modified.
void modified(ulong propval) @property nothrowSet `modified` property. Params: propval = The date and time (in seconds since the UNIX epoch) that this collection was last modified.
secret.service.Service service() @property nothrowGet `service` property. Returns: The [secret.service.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) static nothrowCreate a new collection in the secret service.
secret.collection.Collection createFinish(gio.async_result.AsyncResult result) staticFinish 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) staticCreate 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) static nothrowLookup 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) staticFinish 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) staticLookup 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) nothrowDelete 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() nothrowGet the created date and time of the collection.
secret.types.CollectionFlags getFlags() nothrowGet the flags representing what features of the #SecretCollection proxy have been initialized.
secret.item.Item[] getItems() nothrowGet 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() nothrowGet the label of this collection. Returns: the label, which should be freed with `funcGLib.free`
bool getLocked() nothrowGet whether the collection is locked or not.
ulong getModified() nothrowGet the modified date and time of the collection.
secret.service.Service getService() nothrowGet 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) nothrowEnsure 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() nothrowRefresh 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) nothrowSearch 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) nothrowSet 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)

Fluent builder implementation template for secret.collection.Collection

Methods
T created(ulong propval) nothrowSet `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) nothrowSet `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) nothrowSet `label` property. Params: propval = The human readable label for the collection.
T modified(ulong propval) nothrowSet `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) nothrowSet `service` property. Params: propval = The [secret.service.Service] object that this collection is associated with and uses to interact with the actual D-Bus Secret Service. Returns: Builder ins...

Fluent builder for secret.collection.Collection

Methods
Collection build() nothrowCreate object from builder. Returns: New object