PluginProxy: Split implementations of token providers (#32820)

* Split implementations of token providers

* Fix imports

* Fix code racing in unit tests
This commit is contained in:
Sergey Kostrukov
2021-05-03 13:46:32 +01:00
committed by GitHub
parent c1034f3118
commit 19f520d891
7 changed files with 215 additions and 125 deletions
+12
View File
@@ -0,0 +1,12 @@
package pluginproxy
import "time"
type accessTokenProvider interface {
getAccessToken() (string, error)
}
var (
// timeNow makes it possible to test usage of time
timeNow = time.Now
)