AuthorizedString returns formatted public key string for authorized_keys file.
()
| 81 | |
| 82 | // AuthorizedString returns formatted public key string for authorized_keys file. |
| 83 | func (k *PublicKey) AuthorizedString() string { |
| 84 | return fmt.Sprintf(tplPublicKey, conf.AppPath(), k.ID, conf.CustomConf, k.Content) |
| 85 | } |
| 86 | |
| 87 | // IsDeployKey returns true if the public key is used as deploy key. |
| 88 | func (k *PublicKey) IsDeployKey() bool { |
no test coverage detected