2021-11-21 23:05:13 -05:00
|
|
|
package gosecret
|
2021-11-21 18:07:52 -05:00
|
|
|
|
|
|
|
// NewSecret returns a pointer to a new Secret based on a Session, parameters, (likely an empty byte slice), a value, and the MIME content type.
|
|
|
|
func NewSecret(session *Session, params []byte, value []byte, contentType string) (secret *Secret) {
|
|
|
|
|
|
|
|
secret = &Secret{
|
2021-12-06 03:24:55 -05:00
|
|
|
Session: session.Dbus.Path(),
|
2021-11-21 18:07:52 -05:00
|
|
|
Parameters: params,
|
|
|
|
Value: value,
|
|
|
|
ContentType: contentType,
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|