gosecret/secret.go

22 lines
407 B
Go
Raw Normal View History

2016-10-01 04:13:38 -04:00
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,
}
}