change module name
changing module name to `gosecret` for V2.
This commit is contained in:
parent
e298633935
commit
bdee0ea110
@ -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,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package libsecret
|
package gosecret
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DBusServiceName string = "org.freedesktop.secrets"
|
DBusServiceName string = "org.freedesktop.secrets"
|
||||||
|
4
errs.go
4
errs.go
@ -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")
|
||||||
)
|
)
|
||||||
|
2
funcs.go
2
funcs.go
@ -1,4 +1,4 @@
|
|||||||
package libsecret
|
package gosecret
|
||||||
|
|
||||||
import (
|
import (
|
||||||
`strings`
|
`strings`
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package libsecret
|
package gosecret
|
||||||
|
|
||||||
import (
|
import (
|
||||||
`github.com/godbus/dbus`
|
`github.com/godbus/dbus`
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package libsecret
|
package gosecret
|
||||||
|
|
||||||
import (
|
import (
|
||||||
`github.com/godbus/dbus`
|
`github.com/godbus/dbus`
|
||||||
|
@ -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) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package libsecret
|
package gosecret
|
||||||
|
|
||||||
import (
|
import (
|
||||||
`github.com/godbus/dbus`
|
`github.com/godbus/dbus`
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package libsecret
|
package gosecret
|
||||||
|
|
||||||
import (
|
import (
|
||||||
`github.com/godbus/dbus`
|
`github.com/godbus/dbus`
|
||||||
|
Loading…
Reference in New Issue
Block a user