Initial commit. In working condition

This commit is contained in:
Goran Sterjov
2016-10-01 18:13:38 +10:00
commit 8c0993ba70
7 changed files with 462 additions and 0 deletions

21
secret.go Normal file
View File

@@ -0,0 +1,21 @@
package libsecret
import "github.com/godbus/dbus"
type Secret struct {
Session dbus.ObjectPath
Parameters []byte
Value []byte
ContentType string
}
func NewSecret(session *Session, params []byte, value []byte, contentType string) *Secret {
return &Secret{
Session: session.Path(),
Parameters: params,
Value: value,
ContentType: contentType,
}
}