server

package
v1.0.0-gitspaces-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() (*types.Config, error)

LoadConfig returns the system configuration from the host environment.

func ProvideBlobStoreConfig

func ProvideBlobStoreConfig(config *types.Config) (blob.Config, error)

ProvideBlobStoreConfig loads the blob store config from the main config.

func ProvideCleanupConfig

func ProvideCleanupConfig(config *types.Config) cleanup.Config

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

func ProvideDatabaseConfig(config *types.Config) database.Config

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

func ProvideEventsConfig(config *types.Config) events.Config

ProvideEventsConfig loads the events config from the main config.

func ProvideGitConfig

func ProvideGitConfig(config *types.Config) gittypes.Config

ProvideGitConfig loads the git config from the main config.

func ProvideGitspaceContainerOrchestratorConfig

func ProvideGitspaceContainerOrchestratorConfig(config *types.Config) *container.Config

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 ProvideJobsConfig

func ProvideJobsConfig(config *types.Config) job.Config

func ProvideKeywordSearchConfig

func ProvideKeywordSearchConfig(config *types.Config) keywordsearch.Config

ProvideKeywordSearchConfig loads the keyword search service config from the main config.

func ProvideLockConfig

func ProvideLockConfig(config *types.Config) lock.Config

ProvideLockConfig generates the `lock` package config from the gitness config.

func ProvideNotificationConfig

func ProvideNotificationConfig(config *types.Config) notification.Config

func ProvidePubsubConfig

func ProvidePubsubConfig(config *types.Config) pubsub.Config

ProvidePubsubConfig loads the pubsub config from the main config.

func ProvideRedis

func ProvideRedis(config *types.Config) (redis.UniversalClient, error)

ProvideRedis provides a redis client based on the configuration. TODO: add support for TLS

func ProvideTriggerConfig

func ProvideTriggerConfig(config *types.Config) trigger.Config

ProvideTriggerConfig loads the trigger service config from the main config.

func ProvideWebhookConfig

func ProvideWebhookConfig(config *types.Config) webhook.Config

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

func SetupLogger(config *types.Config)

SetupLogger configures the global logger from the loaded configuration.

func SetupProfiler

func SetupProfiler(config *types.Config)

Types

type System

type System struct {
	// contains filtered or unexported fields
}

System stores high level System sub-routines.

func NewSystem

func NewSystem(
	bootstrap bootstrap.Bootstrap,
	server *server.Server,
	sshServer *ssh.Server,
	poller *poller.Poller,
	resolverManager *resolver.Manager,
	services services.Services,
) *System

NewSystem returns a new system structure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL