summaryrefslogtreecommitdiff
path: root/vendor/github.com/gsterjov/go-libsecret/secret.go
blob: 09393befcf00659c3a636db3147b39dfbe41d500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
  }
}