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

Function isAuthenticationError

commands/import.go:114–118  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

112}
113
114func isAuthenticationError(err error) bool {
115 return reflect.DeepEqual(err, errors.NewNoApiUrlSetError()) ||
116 reflect.DeepEqual(err, errors.NewRevokedTokenError()) ||
117 reflect.DeepEqual(err, errors.NewRefreshError())
118}
119
120func (c *ImportCommand) setCredentialInCredHub(name, credType string, value, metadata interface{}, errorInfo *ErrorInfo, index int) error {
121 var options []credhub.SetOption

Callers 1

Calls 3

NewNoApiUrlSetErrorFunction · 0.92
NewRevokedTokenErrorFunction · 0.92
NewRefreshErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…