{"modulePath":"github.com/SwissDataScienceCenter/renku-notebooks/git-https-proxy","version":"v0.0.0-20260204161747-ff97f34f0e3d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tokenstore\n\n## Types\n\n```go\ntype TokenSet struct {\n\tAccessToken string\n\tExpiresAt   int64\n}\n```\n\n```go\ntype TokenStore struct {\n\t// The git proxy config\n\tConfig *config.GitProxyConfig\n\t// The git providers\n\tProviders map[string]config.GitProvider\n\t// Period used to refresh renku tokens\n\tRefreshTickerPeriod time.Duration\n\t// Safety margin for when to consider a token expired. For example if this is set to\n\t// 30 seconds then the token is considered expired if it expires in the next 30 seconds.\n\tExpirationLeeway time.Duration\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(c *config.GitProxyConfig) *TokenStore\n```\n\n```go\nfunc (s *TokenStore) GetGitAccessToken(provider string, encode bool) (string, error)\n```\nReturns a valid access token for the corresponding git provider. If the token is expired, a new one will be retrieved using the renku access token.\n\n","path":"github.com/SwissDataScienceCenter/renku-notebooks/git-https-proxy/tokenstore","name":"tokenstore","synopsis":"","isRedistributable":true}
