(i identity.Interface)
| 16 | } |
| 17 | |
| 18 | func NewIdentity(i identity.Interface) Identity { |
| 19 | return Identity{ |
| 20 | Id: i.Id().String(), |
| 21 | HumanId: i.Id().Human(), |
| 22 | Name: i.Name(), |
| 23 | Login: i.Login(), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func NewIdentityFromExcerpt(excerpt *cache.IdentityExcerpt) Identity { |
| 28 | return Identity{ |
no test coverage detected