refactor: make credentials.NewMemoryStore return an interface#605
Conversation
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## main #605 +/- ##
==========================================
- Coverage 74.64% 74.45% -0.19%
==========================================
Files 59 59
Lines 5266 5266
==========================================
- Hits 3931 3921 -10
- Misses 983 991 +8
- Partials 352 354 +2
|
|
@uanid Please take a look at this change |
How about changing FileStore to a private too? |
Sounds like a good idea, but subject of another PR, although I don't know if it is practical. |
LGTM too |
But that would require users to specify an extra parameter on initialization. I think it's ok to keep |
The point of having |
credentials.MemoryStoreas it is unecessary to be publiccredentials.NewMemoryStorereturn an interface instead of a struct