refreshStorageErrorKind classifies a credential storage error for the storage_error dimension.
(err error)
| 104 | |
| 105 | // refreshStorageErrorKind classifies a credential storage error for the storage_error dimension. |
| 106 | func refreshStorageErrorKind(err error) string { |
| 107 | var timeoutErr *keyring.TimeoutError |
| 108 | switch { |
| 109 | case err == nil: |
| 110 | return refreshStorageErrorNone |
| 111 | case errors.As(err, &timeoutErr): |
| 112 | return refreshStorageErrorTimeout |
| 113 | default: |
| 114 | return refreshStorageErrorFailed |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | func refreshStorageType(secure bool) string { |
| 119 | if secure { |
no outgoing calls
no test coverage detected