ListPublicKeys returns a list of public keys belongs to given user.
(uid int64)
| 459 | |
| 460 | // ListPublicKeys returns a list of public keys belongs to given user. |
| 461 | func ListPublicKeys(uid int64) ([]*PublicKey, error) { |
| 462 | keys := make([]*PublicKey, 0, 5) |
| 463 | return keys, x.Where("owner_id = ?", uid).Find(&keys) |
| 464 | } |
| 465 | |
| 466 | // UpdatePublicKey updates given public key. |
| 467 | func UpdatePublicKey(key *PublicKey) error { |
no test coverage detected