GetContent gets associated public key content.
()
| 597 | |
| 598 | // GetContent gets associated public key content. |
| 599 | func (k *DeployKey) GetContent() error { |
| 600 | pkey, err := GetPublicKeyByID(k.KeyID) |
| 601 | if err != nil { |
| 602 | return err |
| 603 | } |
| 604 | k.Content = pkey.Content |
| 605 | return nil |
| 606 | } |
| 607 | |
| 608 | func checkDeployKey(e Engine, keyID, repoID int64, name string) error { |
| 609 | // Note: We want error detail, not just true or false here. |
nothing calls this directly
no test coverage detected