MCPcopy
hub / github.com/kubernetes/client-go / cachedTokenSource

Struct cachedTokenSource

plugin/pkg/client/auth/gcp/gcp.go:188–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186func (g *gcpAuthProvider) Login() error { return nil }
187
188type cachedTokenSource struct {
189 lk sync.Mutex
190 source oauth2.TokenSource
191 accessToken string
192 expiry time.Time
193 persister restclient.AuthProviderConfigPersister
194 cache map[string]string
195}
196
197func newCachedTokenSource(accessToken, expiry string, persister restclient.AuthProviderConfigPersister, ts oauth2.TokenSource, cache map[string]string) (*cachedTokenSource, error) {
198 var expiryTime time.Time

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected