MCPcopy Create free account
hub / github.com/pydio/cells / From

Method From

idm/key/dao/sql/sql.go:65–74  ·  view source on GitHub ↗
(res *encryption.Key)

Source from the content-addressed store, hash-verified

63}
64
65func (u *UserKey) From(res *encryption.Key) *UserKey {
66 u.Owner = res.Owner
67 u.ID = res.ID
68 u.Label = res.Label
69 u.Content = res.Content
70 u.CreationDate = res.CreationDate
71 u.Info, _ = proto.Marshal(res.Info)
72
73 return u
74}
75
76func NewDAO(db *gorm.DB) key.DAO {
77 return &sqlimpl{Abstract: sql.NewAbstract(db).WithModels(func() []any {

Callers 1

SaveKeyMethod · 0.45

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected