From bdee0ea110e62075636adbe2d6b0cee4707936cb Mon Sep 17 00:00:00 2001 From: brent s Date: Sun, 21 Nov 2021 23:05:13 -0500 Subject: [PATCH] change module name changing module name to `gosecret` for V2. --- collection_funcs.go | 4 ++-- consts.go | 2 +- errs.go | 4 ++-- funcs.go | 2 +- item_funcs.go | 2 +- prompt_funcs.go | 2 +- secret_funcs.go | 2 +- service_funcs.go | 2 +- session_funcs.go | 2 +- types.go | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/collection_funcs.go b/collection_funcs.go index 0b2c9e4..c205e49 100644 --- a/collection_funcs.go +++ b/collection_funcs.go @@ -1,11 +1,11 @@ -package libsecret +package gosecret import ( `github.com/godbus/dbus` ) // 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{ Conn: conn, diff --git a/consts.go b/consts.go index c8e574a..420bb49 100644 --- a/consts.go +++ b/consts.go @@ -1,4 +1,4 @@ -package libsecret +package gosecret const ( DBusServiceName string = "org.freedesktop.secrets" diff --git a/errs.go b/errs.go index f42dd9f..acf5ca7 100644 --- a/errs.go +++ b/errs.go @@ -1,10 +1,10 @@ -package libsecret +package gosecret import ( `errors` ) var ( - ErrNoDbusConn error = errors.New("no valid dbus connection") + ErrNoDbusConn error = errors.New("no valid dbus connection") ErrBadDbusPath error = errors.New("invalid dbus path") ) diff --git a/funcs.go b/funcs.go index 612e7eb..111bd9b 100644 --- a/funcs.go +++ b/funcs.go @@ -1,4 +1,4 @@ -package libsecret +package gosecret import ( `strings` diff --git a/item_funcs.go b/item_funcs.go index dbec50f..cc8e3ab 100644 --- a/item_funcs.go +++ b/item_funcs.go @@ -1,4 +1,4 @@ -package libsecret +package gosecret import ( `github.com/godbus/dbus` diff --git a/prompt_funcs.go b/prompt_funcs.go index 3f46a4c..c66e08e 100644 --- a/prompt_funcs.go +++ b/prompt_funcs.go @@ -1,4 +1,4 @@ -package libsecret +package gosecret import ( `github.com/godbus/dbus` diff --git a/secret_funcs.go b/secret_funcs.go index ab32734..c026949 100644 --- a/secret_funcs.go +++ b/secret_funcs.go @@ -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. func NewSecret(session *Session, params []byte, value []byte, contentType string) (secret *Secret) { diff --git a/service_funcs.go b/service_funcs.go index 44097f9..723a8f8 100644 --- a/service_funcs.go +++ b/service_funcs.go @@ -1,4 +1,4 @@ -package libsecret +package gosecret import ( `github.com/godbus/dbus` diff --git a/session_funcs.go b/session_funcs.go index 2fb98b5..b9046df 100644 --- a/session_funcs.go +++ b/session_funcs.go @@ -1,4 +1,4 @@ -package libsecret +package gosecret import ( `github.com/godbus/dbus` diff --git a/types.go b/types.go index e251ea9..23b3f5d 100644 --- a/types.go +++ b/types.go @@ -1,4 +1,4 @@ -package libsecret +package gosecret import ( `github.com/godbus/dbus`