KeychainAccess abstracts keychain Get/Set/Remove for dependency injection. Used by AppSecret operations (ForStorage, ResolveSecretInput, RemoveSecretStore). UAT operations in token_store.go use the package-level Get/Set/Remove directly.
| 58 | // Used by AppSecret operations (ForStorage, ResolveSecretInput, RemoveSecretStore). |
| 59 | // UAT operations in token_store.go use the package-level Get/Set/Remove directly. |
| 60 | type KeychainAccess interface { |
| 61 | Get(service, account string) (string, error) |
| 62 | Set(service, account, value string) error |
| 63 | Remove(service, account string) error |
| 64 | } |
| 65 | |
| 66 | // Get retrieves a value from the keychain. |
| 67 | // Returns empty string if the entry does not exist. |
no outgoing calls
no test coverage detected