gosecret/secret.go
2016-10-01 18:13:38 +10:00

22 lines
407 B
Go

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,
}
}