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

Method SetCertificate

credhub/set.go:51–56  ·  view source on GitHub ↗

SetCertificate sets a certificate credential with a user-provided value.

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

Source from the content-addressed store, hash-verified

49
50// SetCertificate sets a certificate credential with a user-provided value.
51func (ch *CredHub) SetCertificate(name string, value values.Certificate, options ...SetOption) (credentials.Certificate, error) {
52 var cred credentials.Certificate
53 err := ch.setCredential(name, "certificate", value, &cred, options...)
54
55 return cred, err
56}
57
58// SetRSA sets an RSA credential with a user-provided value.
59func (ch *CredHub) SetRSA(name string, value values.RSA, options ...SetOption) (credentials.RSA, error) {

Callers 2

set_test.goFile · 0.80
ExampleFunction · 0.80

Calls 1

setCredentialMethod · 0.95

Tested by 1

ExampleFunction · 0.64