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

Method SetRSA

credhub/set.go:59–64  ·  view source on GitHub ↗

SetRSA sets an RSA credential with a user-provided value.

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

Source from the content-addressed store, hash-verified

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) {
60 var cred credentials.RSA
61 err := ch.setCredential(name, "rsa", value, &cred, options...)
62
63 return cred, err
64}
65
66// SetSSH sets an SSH credential with a user-provided value.
67func (ch *CredHub) SetSSH(name string, value values.SSH, options ...SetOption) (credentials.SSH, error) {

Callers 1

set_test.goFile · 0.80

Calls 1

setCredentialMethod · 0.95

Tested by

no test coverage detected