buildgrid.server.app.settings.config module

class buildgrid.server.app.settings.config.ChannelConfig(insecure_mode: bool, address: str, credentials: Dict[str, str] | NoneType = None)

Bases: object

insecure_mode: bool
address: str
credentials: Dict[str, str] | None = None
class buildgrid.server.app.settings.config.InstanceConfig(name: str, description: str | NoneType, connections: List[Union[buildgrid.server.sql.provider.SqlProvider, ForwardRef('RedisProvider')]], storages: List[buildgrid.server.cas.storage.storage_abc.StorageABC], caches: List[buildgrid.server.actioncache.caches.action_cache_abc.ActionCacheABC], clients: List[buildgrid_metering.client.client.SyncMeteringServiceClient | buildgrid.server.client.asset.AssetClient], schedulers: List[buildgrid.server.scheduler.impl.Scheduler], services: List[buildgrid.server.servicer.Instance])

Bases: object

name: str
description: str | None
connections: List[SqlProvider | RedisProvider]
storages: List[StorageABC]
caches: List[ActionCacheABC]
clients: List[SyncMeteringServiceClient | AssetClient]
schedulers: List[Scheduler]
services: List[Instance]
class buildgrid.server.app.settings.config.CleanupConfig(name: str, index: buildgrid.server.cas.storage.index.index_abc.IndexABC)

Bases: object

name: str
index: IndexABC
class buildgrid.server.app.settings.config.BuildgridConfig(description: str | NoneType, authorization: buildgrid.server.auth.manager.AuthManager | NoneType, monitoring: buildgrid.server.monitoring.MonitoringBus | NoneType, thread_pool_size: int | NoneType, server_reflection: bool, grpc_compression: grpc.Compression, server: List[buildgrid.server.app.settings.config.ChannelConfig], grpc_server_options: Sequence[Tuple[str, Any]] | NoneType, connections: List[Union[buildgrid.server.sql.provider.SqlProvider, ForwardRef('RedisProvider')]], storages: List[buildgrid.server.cas.storage.storage_abc.StorageABC], caches: List[buildgrid.server.actioncache.caches.action_cache_abc.ActionCacheABC], clients: List[buildgrid_metering.client.client.SyncMeteringServiceClient | buildgrid.server.client.asset.AssetClient], schedulers: List[buildgrid_metering.client.client.SyncMeteringServiceClient | buildgrid.server.client.asset.AssetClient], instances: List[buildgrid.server.app.settings.config.InstanceConfig], cleanup: List[buildgrid.server.app.settings.config.CleanupConfig])

Bases: object

description: str | None
authorization: AuthManager | None
monitoring: MonitoringBus | None
thread_pool_size: int | None
server_reflection: bool
grpc_compression: Compression
server: List[ChannelConfig]
grpc_server_options: Sequence[Tuple[str, Any]] | None
connections: List[SqlProvider | RedisProvider]
storages: List[StorageABC]
caches: List[ActionCacheABC]
clients: List[SyncMeteringServiceClient | AssetClient]
schedulers: List[SyncMeteringServiceClient | AssetClient]
instances: List[InstanceConfig]
cleanup: List[CleanupConfig]
buildgrid.server.app.settings.config.populate_authorization_config(conf: Dict[str, Any]) AuthManager | None
buildgrid.server.app.settings.config.populate_monitoring_config(conf: Dict[str, Any]) MonitoringBus | None
buildgrid.server.app.settings.config.populate_instance_config(confs: List[Dict[str, Any]]) List[InstanceConfig]
buildgrid.server.app.settings.config.populate_cleanup_config(confs: List[Dict[str, Any]]) List[CleanupConfig]
buildgrid.server.app.settings.config.populate_buildgrid_config(conf: Dict[str, Any]) BuildgridConfig
buildgrid.server.app.settings.config.parse_compression(conf: str) Compression
buildgrid.server.app.settings.config.normalize_str_or_list_strs(conf: str | List[str]) List[str]

Normalize some configs that are allowed to be either a singleton or a list to a list