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

Method SetJSON

credhub/set.go:27–32  ·  view source on GitHub ↗

SetJSON sets a JSON credential with a user-provided value.

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

Source from the content-addressed store, hash-verified

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) {
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.
35func (ch *CredHub) SetPassword(name string, value values.Password, options ...SetOption) (credentials.Password, error) {

Callers 1

set_test.goFile · 0.80

Calls 1

setCredentialMethod · 0.95

Tested by

no test coverage detected