Initial commit. In working condition
This commit is contained in:
21
secret.go
Normal file
21
secret.go
Normal 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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user