change module name

changing module name to `gosecret` for V2.
This commit is contained in:
brent s 2021-11-21 23:05:13 -05:00
parent e298633935
commit bdee0ea110
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
10 changed files with 12 additions and 12 deletions

View File

@ -1,11 +1,11 @@
package libsecret package gosecret


import ( import (
`github.com/godbus/dbus` `github.com/godbus/dbus`
) )


// NewCollection returns a pointer to a new Collection based on a Dbus connection and a Dbus path. // NewCollection returns a pointer to a new Collection based on a Dbus connection and a Dbus path.
func NewCollection(conn *dbus.Conn, path dbus.ObjectPath) (coll *Collection) { func NewCollection(conn *dbus.Conn, path dbus.ObjectPath) (coll *Collection, err error) {


coll = &Collection{ coll = &Collection{
Conn: conn, Conn: conn,

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


const ( const (
DBusServiceName string = "org.freedesktop.secrets" DBusServiceName string = "org.freedesktop.secrets"

View File

@ -1,10 +1,10 @@
package libsecret package gosecret


import ( import (
`errors` `errors`
) )


var ( var (
ErrNoDbusConn error = errors.New("no valid dbus connection") ErrNoDbusConn error = errors.New("no valid dbus connection")
ErrBadDbusPath error = errors.New("invalid dbus path") ErrBadDbusPath error = errors.New("invalid dbus path")
) )

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


import ( import (
`strings` `strings`

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


import ( import (
`github.com/godbus/dbus` `github.com/godbus/dbus`

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


import ( import (
`github.com/godbus/dbus` `github.com/godbus/dbus`

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


// NewSecret returns a pointer to a new Secret based on a Session, parameters, (likely an empty byte slice), a value, and the MIME content type. // NewSecret returns a pointer to a new Secret based on a Session, parameters, (likely an empty byte slice), a value, and the MIME content type.
func NewSecret(session *Session, params []byte, value []byte, contentType string) (secret *Secret) { func NewSecret(session *Session, params []byte, value []byte, contentType string) (secret *Secret) {

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


import ( import (
`github.com/godbus/dbus` `github.com/godbus/dbus`

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


import ( import (
`github.com/godbus/dbus` `github.com/godbus/dbus`

View File

@ -1,4 +1,4 @@
package libsecret package gosecret


import ( import (
`github.com/godbus/dbus` `github.com/godbus/dbus`