Service discovery
UnrecoverableError
Bases: Exception
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
__init__(*args)
Initializes an UnrecoverableError.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args |
object
|
Any additional arguments for the exception. |
()
|
ServiceUnavailableError
Bases: Exception
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
__init__(*args)
Initializes a ServiceUnavailableError.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args |
object
|
Any additional arguments for the exception. |
()
|
ServiceDiscovery
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
__init__(envvars)
Initializes a ServiceDiscovery instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
envvars |
dict
|
A dictionary of environment variables. |
required |
Raises:
| Type | Description |
|---|---|
UnrecoverableError
|
If environment variables are not set. |
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
rabbitmq_endpoint()
Gets the RabbitMQ endpoint.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The RabbitMQ endpoint in 'amqp' protocol. |
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
services_rabbitmq_exchange()
Gets the services RabbitMQ exchange.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The name of the services RabbitMQ exchange. |
services_config_handler_endpoint()
Gets the services config handler endpoint.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The services config handler endpoint. |
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
services_schemas_handler_endpoint()
Gets the services schemas handler endpoint.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The services schemas handler endpoint. |
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
services_file_catalog_handler_endpoint()
Gets the services file catalog handler endpoint.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The services file catalog handler endpoint. |
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
minio_endpoint()
Gets the Minio endpoint.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The Minio endpoint. |
Source code in libs/python/shared/py-sd/pysd/service_discovery.py
minio_access_key()
Gets the Minio access key.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The Minio access key. |
minio_secret_key()
Gets the Minio secret key.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The Minio secret key. |
new_from_env()
Creates a ServiceDiscovery instance using environment variables.
Returns:
| Name | Type | Description |
|---|---|---|
ServiceDiscovery |
A new ServiceDiscovery instance. |