gosecret/consts_test.go

33 lines
944 B
Go
Raw Permalink Normal View History

package gosecret
2021-12-10 02:50:30 -05:00
import (
`github.com/google/uuid`
)
// Paths.
const (
2021-12-12 02:29:29 -05:00
dbusCollectionPath string = DbusPath + "/collection"
dbusDefaultCollectionPath string = dbusCollectionPath + "/login"
)
2021-12-10 02:50:30 -05:00
// Strings.
const (
2021-12-12 02:29:29 -05:00
defaultCollectionAlias string = "default" // SHOULD point to a collection named "login" (below); "default" is the alias.
defaultCollection string = "login"
defaultCollectionLabel string = "Login" // a display name; the label is lowercased and normalized for the path (per above).
testAlias string = "GOSECRET_TESTING_ALIAS"
testSecretContent string = "This is a test secret for gosecret."
testItemLabel string = "Gosecret Test Item"
2021-12-10 02:50:30 -05:00
)
// Objects.
var (
2021-12-12 02:29:29 -05:00
collectionName uuid.UUID = uuid.New()
collectionAlias uuid.UUID = uuid.New()
itemAttrs map[string]string = map[string]string{
"GOSECRET": "yes",
"foo": "bar",
"profile": testItemLabel,
}
2021-12-10 02:50:30 -05:00
)