Documentation
¶
Index ¶
- type AuthConfig
- type AuthMode
- type Config
- type DatabaseConfig
- type EventConfig
- type EventDriver
- type GitHubConfig
- type LoadOptions
- type LogFormat
- type LoggingConfig
- type Metadata
- type MetricsConfig
- type MetricsExportConfig
- type OIDCConfig
- type ObservabilityConfig
- type OrchestratorConfig
- type ServerConfig
- type ServerMode
- type TraceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Mode AuthMode
OIDC OIDCConfig
}
type Config ¶
type Config struct {
Server ServerConfig
Auth AuthConfig
GitHub GitHubConfig
Database DatabaseConfig
Orchestrator OrchestratorConfig
Event EventConfig
Observability ObservabilityConfig
Logging LoggingConfig
Metadata Metadata
}
func Load ¶
func Load(opts LoadOptions) (Config, error)
func (Config) ResolvedEventDriver ¶
func (cfg Config) ResolvedEventDriver() (EventDriver, error)
type DatabaseConfig ¶
type DatabaseConfig struct {
DSN string
}
type EventConfig ¶
type EventConfig struct {
Driver EventDriver
}
type EventDriver ¶
type EventDriver string
const ( EventDriverAuto EventDriver = "auto" EventDriverChannel EventDriver = "channel" EventDriverPGNotify EventDriver = "pgnotify" )
type GitHubConfig ¶
type GitHubConfig struct {
WebhookSecret string
}
type LoadOptions ¶
type LoggingConfig ¶
type MetricsConfig ¶
type MetricsConfig struct {
Enabled bool
Export MetricsExportConfig
}
type MetricsExportConfig ¶
type OIDCConfig ¶
type OIDCConfig struct {
IssuerURL string
ClientID string
ClientSecret string
RedirectURL string
Scopes []string
EmailClaim string
NameClaim string
UsernameClaim string
GroupsClaim string
AllowedEmailDomains []string
BootstrapAdminEmails []string
SessionTTL time.Duration
SessionIdleTTL time.Duration
}
type ObservabilityConfig ¶
type ObservabilityConfig struct {
Metrics MetricsConfig
Tracing TraceConfig
}
type OrchestratorConfig ¶
type ServerConfig ¶
type ServerMode ¶
type ServerMode string
const ( ServerModeAllInOne ServerMode = "all-in-one" ServerModeServe ServerMode = "serve" ServerModeOrchestrate ServerMode = "orchestrate" )
Click to show internal directories.
Click to hide internal directories.