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

Method SetSSH

credhub/set.go:67–72  ·  view source on GitHub ↗

SetSSH sets an SSH credential with a user-provided value.

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

Source from the content-addressed store, hash-verified

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) {
68 var cred credentials.SSH
69 err := ch.setCredential(name, "ssh", value, &cred, options...)
70
71 return cred, err
72}
73
74// SetCredential sets a credential of any type with a user-provided value.
75func (ch *CredHub) SetCredential(name, credType string, value interface{}, options ...SetOption) (credentials.Credential, error) {

Callers 1

set_test.goFile · 0.80

Calls 1

setCredentialMethod · 0.95

Tested by

no test coverage detected