Versions in this module Expand all Collapse all v0 v0.0.70 Oct 23, 2024 v0.0.69 Oct 22, 2024 v0.0.68 Oct 17, 2024 v0.0.67 Oct 17, 2024 v0.0.66 Oct 15, 2024 Changes in this version + var ErrInvalidBundleSource = errors.New("unexpected bundle source") + func FallbackOAuthClientConfigValues(provider string, cfg *OAuthClientConfig) + func RegisterIdentityFlags(v *viper.Viper, flags *pflag.FlagSet) error + func RegisterServerFlags(v *viper.Viper, flags *pflag.FlagSet) error + func SetViperDefaults(v *viper.Viper) + type AWSSES struct + Region string + Sender string + type AggregatorConfig struct + LockInterval int64 + type AuthConfig struct + NoncePeriod int64 + TokenKey string + type AuthzConfig struct + ApiUrl string + Auth OpenFGAAuth + ModelID string + StoreID string + StoreName string + func (a *AuthzConfig) Validate() error + type BundleSourceConfig struct + Location string + Type string + func (b *BundleSourceConfig) GetType() (ConfigBundleSource, error) + type CORSConfig struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + Enabled bool + ExposeHeaders []string + type Config struct + Auth AuthConfig + Authz AuthzConfig + Crypto CryptoConfig + Database config.DatabaseConfig + DefaultProfiles DefaultProfilesConfig + Email EmailConfig + Events EventConfig + Flags FlagsConfig + GRPCServer GRPCServerConfig + HTTPServer HTTPServerConfig + Identity IdentityConfigWrapper + LoggingConfig LoggingConfig + Marketplace MarketplaceConfig + MetricServer MetricServerConfig + Metrics MetricsConfig + Provider ProviderConfig + Tracing TracingConfig + WebhookConfig WebhookConfig + func DefaultConfigForTest() *Config + type ConfigBundleSource string + const TgzSource + const Unknown + type CryptoConfig struct + Default DefaultCrypto + Fallback FallbackCrypto + KeyStore KeyStoreConfig + type DefaultCrypto struct + KeyID string + type DefaultProfilesConfig struct + Bundle IncludedBundleConfig + Enabled bool + Profiles []string + func (d *DefaultProfilesConfig) GetProfiles() []string + type EmailConfig struct + AWSSES AWSSES + MinderURLBase string + type EventConfig struct + Aggregator AggregatorConfig + Driver string + GoChannel GoChannelEventConfig + Nats NatsConfig + RouterCloseTimeout int64 + SQLPubSub SQLEventConfig + type FallbackCrypto struct + KeyID string + type FlagsConfig struct + AppName string + GoFeature GoFeatureConfig + type GRPCServerConfig struct + Host string + Port int + func (s *GRPCServerConfig) GetAddress() string + type GitConfig struct + MaxBytes int64 + MaxFiles int64 + type GitHubAppConfig struct + AppID int64 + AppName string + FallbackToken string + FallbackTokenFile string + PrivateKey string + UserID int64 + WebhookSecret string + WebhookSecretFile string + func (ghcfg *GitHubAppConfig) GetFallbackToken() (string, error) + func (ghcfg *GitHubAppConfig) GetPrivateKey() (*rsa.PrivateKey, error) + func (ghcfg *GitHubAppConfig) GetWebhookSecret() (string, error) + type GitHubConfig struct + type GitLabConfig struct + Scopes []string + type GoChannelEventConfig struct + BlockPublishUntilSubscriberAck bool + BufferSize int64 + PersistEvents bool + type GoFeatureConfig struct + FilePath string + type HTTPServerConfig struct + CORS CORSConfig + Host string + Port int + func (s *HTTPServerConfig) GetAddress() string + type IdentityConfig struct + Audience string + ClientId string + ClientSecret string + ClientSecretFile string + IssuerClaim string + IssuerUrl string + func (ic *IdentityConfig) Issuer() url.URL + func (sic *IdentityConfig) Do(ctx context.Context, method string, path string, query url.Values, ...) (*http.Response, error) + func (sic *IdentityConfig) GetClientSecret() (string, error) + func (sic *IdentityConfig) JwtUrl(elem ...string) (*url.URL, error) + func (sic *IdentityConfig) Path(path string) (*url.URL, error) + type IdentityConfigWrapper struct + Server IdentityConfig + type IncludedBundleConfig struct + Name string + Namespace string + type KeyStoreConfig struct + Local LocalKeyStoreConfig + Type string + type LocalKeyStoreConfig struct + KeyDir string + type LoggingConfig struct + Format string + Level string + LogFile string + LogPayloads bool + type MarketplaceConfig struct + Enabled bool + Sources []BundleSourceConfig + type MetricServerConfig struct + Host string + Port int + func (s *MetricServerConfig) GetAddress() string + type MetricsConfig struct + Enabled bool + type NatsConfig struct + Prefix string + Queue string + URL string + type OAuthClientConfig struct + ClientID string + ClientIDFile string + ClientSecret string + ClientSecretFile string + Endpoint *OAuthEndpoint + RedirectURI string + func (cfg *OAuthClientConfig) GetClientID() (string, error) + func (cfg *OAuthClientConfig) GetClientSecret() (string, error) + type OAuthEndpoint struct + TokenURL string + type OpenFGAAuth struct + Method string + Token TokenAuth + func (o *OpenFGAAuth) Validate() error + type ProviderConfig struct + Git GitConfig + GitHub *GitHubConfig + GitHubApp *GitHubAppConfig + GitLab *GitLabConfig + type SQLEventConfig struct + AckDeadline time.Duration + Connection config.DatabaseConfig + InitSchema bool + type TokenAuth struct + TokenPath string + func (t *TokenAuth) ReadToken() (string, error) + func (t *TokenAuth) Validate() error + type TracingConfig struct + Enabled bool + SampleRatio float64 + type WebhookConfig struct + ExternalPingURL string + ExternalWebhookURL string + type WebhookSecrets struct + PreviousWebhookSecretFile string + WebhookSecret string + WebhookSecretFile string + func (wc *WebhookSecrets) GetPreviousWebhookSecrets() ([]string, error) + func (wc *WebhookSecrets) GetWebhookSecret() (string, error)