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

Method SetPassword

credhub/set.go:35–40  ·  view source on GitHub ↗

SetPassword sets a password credential with a user-provided value.

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

Source from the content-addressed store, hash-verified

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

Callers 1

set_test.goFile · 0.80

Calls 1

setCredentialMethod · 0.95

Tested by

no test coverage detected