Documentation
¶
Index ¶
- func LoadConfig() (*types.Config, error)
- func ProvideBlobStoreConfig(config *types.Config) (blob.Config, error)
- func ProvideCleanupConfig(config *types.Config) cleanup.Config
- func ProvideCodeOwnerConfig(config *types.Config) codeowners.Config
- func ProvideDatabaseConfig(config *types.Config) database.Config
- func ProvideDockerConfig(config *types.Config) (*infraprovider.DockerConfig, error)
- func ProvideEventsConfig(config *types.Config) events.Config
- func ProvideGitConfig(config *types.Config) gittypes.Config
- func ProvideGitspaceContainerOrchestratorConfig(config *types.Config) *container.Config
- func ProvideGitspaceEventConfig(config *types.Config) gitspaceevent.Config
- func ProvideIDEVSCodeWebConfig(config *types.Config) *container.VSCodeWebConfig
- func ProvideJobsConfig(config *types.Config) job.Config
- func ProvideKeywordSearchConfig(config *types.Config) keywordsearch.Config
- func ProvideLockConfig(config *types.Config) lock.Config
- func ProvideNotificationConfig(config *types.Config) notification.Config
- func ProvidePubsubConfig(config *types.Config) pubsub.Config
- func ProvideRedis(config *types.Config) (redis.UniversalClient, error)
- func ProvideTriggerConfig(config *types.Config) trigger.Config
- func ProvideWebhookConfig(config *types.Config) webhook.Config
- func Register(app *kingpin.Application, ...)
- func SetupLogger(config *types.Config)
- func SetupProfiler(config *types.Config)
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
LoadConfig returns the system configuration from the host environment.
func ProvideBlobStoreConfig ¶
ProvideBlobStoreConfig loads the blob store config from the main config.
func ProvideCleanupConfig ¶
ProvideCleanupConfig loads the cleanup service config from the main config.
func ProvideCodeOwnerConfig ¶
func ProvideCodeOwnerConfig(config *types.Config) codeowners.Config
ProvideCodeOwnerConfig loads the codeowner config from the main config.
func ProvideDatabaseConfig ¶
ProvideDatabaseConfig loads the database config from the main config.
func ProvideDockerConfig ¶
func ProvideDockerConfig(config *types.Config) (*infraprovider.DockerConfig, error)
ProvideDockerConfig loads config for Docker.
func ProvideEventsConfig ¶
ProvideEventsConfig loads the events config from the main config.
func ProvideGitConfig ¶
ProvideGitConfig loads the git config from the main config.
func ProvideGitspaceContainerOrchestratorConfig ¶
ProvideGitspaceContainerOrchestratorConfig loads the Gitspace container orchestrator config from the main config.
func ProvideGitspaceEventConfig ¶
func ProvideGitspaceEventConfig(config *types.Config) gitspaceevent.Config
ProvideGitspaceEventConfig loads the gitspace event service config from the main config.
func ProvideIDEVSCodeWebConfig ¶
func ProvideIDEVSCodeWebConfig(config *types.Config) *container.VSCodeWebConfig
ProvideIDEVSCodeWebConfig loads the VSCode Web IDE config from the main config.
func ProvideKeywordSearchConfig ¶
func ProvideKeywordSearchConfig(config *types.Config) keywordsearch.Config
ProvideKeywordSearchConfig loads the keyword search service config from the main config.
func ProvideLockConfig ¶
ProvideLockConfig generates the `lock` package config from the gitness config.
func ProvideNotificationConfig ¶
func ProvideNotificationConfig(config *types.Config) notification.Config
func ProvidePubsubConfig ¶
ProvidePubsubConfig loads the pubsub config from the main config.
func ProvideRedis ¶
ProvideRedis provides a redis client based on the configuration. TODO: add support for TLS
func ProvideTriggerConfig ¶
ProvideTriggerConfig loads the trigger service config from the main config.
func ProvideWebhookConfig ¶
ProvideWebhookConfig loads the webhook service config from the main config.
func Register ¶
func Register(app *kingpin.Application, initializer func(context.Context, *types.Config) (*System, error))
Register the server command.
func SetupLogger ¶
SetupLogger configures the global logger from the loaded configuration.