SetPassword sets a password credential with a user-provided value.
(name string, value values.Password, options ...SetOption)
| 33 | |
| 34 | // SetPassword sets a password credential with a user-provided value. |
| 35 | func (ch *CredHub) SetPassword(name string, value values.Password, options ...SetOption) (credentials.Password, error) { |
| 36 | var cred credentials.Password |
| 37 | err := ch.setCredential(name, "password", value, &cred, options...) |
| 38 | |
| 39 | return cred, err |
| 40 | } |
| 41 | |
| 42 | // SetUser sets a user credential with a user-provided value. |
| 43 | func (ch *CredHub) SetUser(name string, value values.User, options ...SetOption) (credentials.User, error) { |
no test coverage detected