Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReuseSourceStore ¶
type ReuseSourceStore struct {
// contains filtered or unexported fields
}
ReuseSourceStore is a store for reuse token sources to avoid creating new sources for the same refresh token in each reconciliation loop.
func NewReuseSourceStore ¶
func NewReuseSourceStore() *ReuseSourceStore
NewReuseSourceStore creates a new ReuseSourceStore.
func (*ReuseSourceStore) SourceForRefreshToken ¶
func (c *ReuseSourceStore) SourceForRefreshToken(refreshToken string, src oauth2.TokenSource) oauth2.TokenSource
SourceForRefreshToken returns a token source for the supplied refresh token. If a token source for the refresh token already exists, it is returned. Otherwise, a new reuse token source is created, stored for later access and returned.
Click to show internal directories.
Click to hide internal directories.