SetCertificate sets a certificate credential with a user-provided value.
(name string, value values.Certificate, options ...SetOption)
| 49 | |
| 50 | // SetCertificate sets a certificate credential with a user-provided value. |
| 51 | func (ch *CredHub) SetCertificate(name string, value values.Certificate, options ...SetOption) (credentials.Certificate, error) { |
| 52 | var cred credentials.Certificate |
| 53 | err := ch.setCredential(name, "certificate", value, &cred, options...) |
| 54 | |
| 55 | return cred, err |
| 56 | } |
| 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) { |