MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / SetValue

Method SetValue

credhub/set.go:19–24  ·  view source on GitHub ↗

SetValue sets a value credential with a user-provided value.

(name string, value values.Value, options ...SetOption)

Source from the content-addressed store, hash-verified

17
18// SetValue sets a value credential with a user-provided value.
19func (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.
27func (ch *CredHub) SetJSON(name string, value values.JSON, options ...SetOption) (credentials.JSON, error) {

Callers 1

set_test.goFile · 0.80

Calls 1

setCredentialMethod · 0.95

Tested by

no test coverage detected