58 lines
2.3 KiB
Python
58 lines
2.3 KiB
Python
from dynaconf import Validator
|
|
|
|
queue_manager_validators = [
|
|
Validator("rabbitmq.host", must_exist=True, is_type_of=str),
|
|
Validator("rabbitmq.port", must_exist=True, is_type_of=int),
|
|
Validator("rabbitmq.username", must_exist=True, is_type_of=str),
|
|
Validator("rabbitmq.password", must_exist=True, is_type_of=str),
|
|
Validator("rabbitmq.heartbeat", must_exist=True, is_type_of=int),
|
|
Validator("rabbitmq.connection_sleep", must_exist=True, is_type_of=int),
|
|
Validator("rabbitmq.input_queue", must_exist=True, is_type_of=str),
|
|
Validator("rabbitmq.output_queue", must_exist=True, is_type_of=str),
|
|
Validator("rabbitmq.dead_letter_queue", must_exist=True, is_type_of=str),
|
|
]
|
|
|
|
azure_storage_validators = [
|
|
Validator("storage.azure.connection_string", must_exist=True, is_type_of=str),
|
|
Validator("storage.azure.container", must_exist=True, is_type_of=str),
|
|
]
|
|
|
|
s3_storage_validators = [
|
|
Validator("storage.s3.endpoint", must_exist=True, is_type_of=str),
|
|
Validator("storage.s3.key", must_exist=True, is_type_of=str),
|
|
Validator("storage.s3.secret", must_exist=True, is_type_of=str),
|
|
Validator("storage.s3.region", must_exist=True, is_type_of=str),
|
|
Validator("storage.s3.bucket", must_exist=True, is_type_of=str),
|
|
]
|
|
|
|
storage_validators = [
|
|
Validator("storage.backend", must_exist=True, is_type_of=str),
|
|
]
|
|
|
|
multi_tenant_storage_validators = [
|
|
Validator("storage.tenant_server.endpoint", must_exist=True, is_type_of=str),
|
|
Validator("storage.tenant_server.public_key", must_exist=True, is_type_of=str),
|
|
]
|
|
|
|
|
|
prometheus_validators = [
|
|
Validator("metrics.prometheus.prefix", must_exist=True, is_type_of=str),
|
|
Validator("metrics.prometheus.enabled", must_exist=True, is_type_of=bool),
|
|
]
|
|
|
|
webserver_validators = [
|
|
Validator("webserver.host", must_exist=True, is_type_of=str),
|
|
Validator("webserver.port", must_exist=True, is_type_of=int),
|
|
]
|
|
|
|
tracing_validators = [
|
|
Validator("tracing.enabled", must_exist=True, is_type_of=bool),
|
|
Validator("tracing.type", must_exist=True, is_type_of=str)
|
|
]
|
|
|
|
opentelemetry_validators = [
|
|
Validator("tracing.opentelemetry.endpoint", must_exist=True, is_type_of=str),
|
|
Validator("tracing.opentelemetry.service_name", must_exist=True, is_type_of=str),
|
|
Validator("tracing.opentelemetry.exporter", must_exist=True, is_type_of=str)
|
|
]
|