SetRSA sets an RSA credential with a user-provided value.
(name string, value values.RSA, options ...SetOption)
| 57 | |
| 58 | // SetRSA sets an RSA credential with a user-provided value. |
| 59 | func (ch *CredHub) SetRSA(name string, value values.RSA, options ...SetOption) (credentials.RSA, error) { |
| 60 | var cred credentials.RSA |
| 61 | err := ch.setCredential(name, "rsa", value, &cred, options...) |
| 62 | |
| 63 | return cred, err |
| 64 | } |
| 65 | |
| 66 | // SetSSH sets an SSH credential with a user-provided value. |
| 67 | func (ch *CredHub) SetSSH(name string, value values.SSH, options ...SetOption) (credentials.SSH, error) { |
no test coverage detected