token

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL