SetSSH sets an SSH credential with a user-provided value.
(name string, value values.SSH, options ...SetOption)
| 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) { |
| 68 | var cred credentials.SSH |
| 69 | err := ch.setCredential(name, "ssh", value, &cred, options...) |
| 70 | |
| 71 | return cred, err |
| 72 | } |
| 73 | |
| 74 | // SetCredential sets a credential of any type with a user-provided value. |
| 75 | func (ch *CredHub) SetCredential(name, credType string, value interface{}, options ...SetOption) (credentials.Credential, error) { |
no test coverage detected