checking in - all basic funcs in place; add a few more then v1 merge
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user