{"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 config\n\n## Types\n\n```go\ntype GitProvider struct {\n\tId             string `json:\"id\"`\n\tAccessTokenUrl string `json:\"access_token_url\"`\n}\n```\n\n```go\ntype GitProxyConfig struct {\n\t// The port where the proxy is listening on\n\tProxyPort int `mapstructure:\"port\"`\n\t// The port (separate from the proxy) where the proxy will respond to status probes\n\tHealthPort int `mapstructure:\"health_port\"`\n\t// True if this is an anonymous session\n\tAnonymousSession bool `mapstructure:\"anonymous_session\"`\n\t// The oauth access token issued by Keycloak to a logged in Renku user\n\tRenkuAccessToken string `mapstructure:\"renku_access_token\"`\n\t// The oauth refresh token issued by Keycloak to a logged in Renku user\n\t// It is assumed that the refresh tokens do not expire after use and can be reused.\n\t// This means that the 'Revoke Refresh Token' setting in the Renku realm in Keycloak\n\t// is not enabled.\n\tRenkuRefreshToken string `mapstructure:\"renku_refresh_token\"`\n\t// The url of the renku deployment\n\tRenkuURL *url.URL `mapstructure:\"renku_url\"`\n\t// The name of the Renku realm in Keycloak\n\tRenkuRealm string `mapstructure:\"renku_realm\"`\n\t// The Keycloak client ID to which the access token and refresh tokens were issued to\n\tRenkuClientID string `mapstructure:\"renku_client_id\"`\n\t// The client secret for the client ID\n\tRenkuClientSecret string `mapstructure:\"renku_client_secret\"`\n\t// The git repositories to proxy\n\tRepositories []GitRepository `mapstructure:\"repositories\"`\n\t// The git providers\n\tProviders []GitProvider `mapstructure:\"providers\"`\n\t// The time interval used for refreshing renku tokens\n\tRefreshCheckPeriodSeconds int64 `mapstructure:\"refresh_check_period_seconds\"`\n}\n```\n\n```go\nfunc GetConfig() (GitProxyConfig, error)\n```\n\n```go\nfunc (c *GitProxyConfig) GetExpirationLeeway() time.Duration\n```\n\n```go\nfunc (c *GitProxyConfig) GetRefreshCheckPeriod() time.Duration\n```\n\n```go\nfunc (c *GitProxyConfig) Validate() error\n```\n\n```go\ntype GitRepository struct {\n\tUrl      string `json:\"url\"`\n\tProvider string `json:\"provider\"`\n}\n```\n\n","path":"github.com/SwissDataScienceCenter/renku-notebooks/git-https-proxy/config","name":"config","synopsis":"","isRedistributable":true}
