SetValue sets a value credential with a user-provided value.
(name string, value values.Value, options ...SetOption)
| 17 | |
| 18 | // SetValue sets a value credential with a user-provided value. |
| 19 | func (ch *CredHub) SetValue(name string, value values.Value, options ...SetOption) (credentials.Value, error) { |
| 20 | var cred credentials.Value |
| 21 | err := ch.setCredential(name, "value", value, &cred, options...) |
| 22 | |
| 23 | return cred, err |
| 24 | } |
| 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) { |
no test coverage detected