checking in - all basic funcs in place; add a few more then v1 merge

This commit is contained in:
2021-12-06 03:24:55 -05:00
parent 1d093627f6
commit 0fc0e0c269
16 changed files with 541 additions and 193 deletions

View File

@@ -1,21 +1,22 @@
package gosecret
import (
"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)
// I'm still not 100% certain what Sessions are used for?
// I'm still not 100% certain what Sessions are used for, aside from getting Secrets from Items.
/*
NewSession returns a pointer to a new Session based on a Service and a dbus.ObjectPath.
If path is empty (""), the default
You will almost always want to use Service.GetSession or Service.OpenSession instead.
*/
func NewSession(service *Service, path dbus.ObjectPath) (session *Session) {
var ssn Session = Session{
&DbusObject{
DbusObject: &DbusObject{
Conn: service.Conn,
},
service: service,
}
session.Dbus = session.Conn.Object(DbusInterfaceSession, path)