better godoc documentation

This commit is contained in:
2021-11-26 00:01:49 -05:00
parent 644ac13451
commit dbc0962e46
8 changed files with 65 additions and 13 deletions

View File

@@ -1,14 +1,19 @@
package gosecret
// Libsecret/SecretService identifiers.
// Libsecret/SecretService/Dbus identifiers.
const (
// DbusServiceName is the "root Dbus path" in identifier format.
DbusServiceName string = "org.freedesktop.secrets"
// DbusItemsID is the Dbus identifier for Item.
DbusItemsID string = "org.freedesktop.Secret.Collection.Items"
// DbusCollectionDelete is the Dbus identifier for Collection.Delete.
DbusCollectionDelete string = "org.freedesktop.Secret.Collection.Delete"
)
// Dbus constants
// Dbus constants and paths.
const (
DBusServiceName string = "org.freedesktop.secrets"
DBusPath string = "/org/freedesktop/secrets"
PromptPrefix string = DBusPath + "/prompt/"
// DbusPath is the path version of DbusServiceName.
DbusPath string = "/org/freedesktop/secrets"
// PromptPrefix is the path used for prompts comparison.
PromptPrefix string = DbusPath + "/prompt/"
)