SetJSON sets a JSON credential with a user-provided value.
(name string, value values.JSON, options ...SetOption)
| 25 | |
| 26 | // SetJSON sets a JSON credential with a user-provided value. |
| 27 | func (ch *CredHub) SetJSON(name string, value values.JSON, options ...SetOption) (credentials.JSON, error) { |
| 28 | var cred credentials.JSON |
| 29 | err := ch.setCredential(name, "json", value, &cred, options...) |
| 30 | |
| 31 | return cred, err |
| 32 | } |
| 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) { |
no test coverage detected