Acquire.Registry._registry module

class Registry[source]

Bases: object

This class holds the registry of all services registered by this service. Registries provided trusted actors who can supply public keys, URLs, and UIDs for all of the different services in the system.

challenge_service(service)[source]

Send a challenge to the passed service, returning the actual service returned. This will only pass if our copy of the service matches us with the copy returned from the actual service. This verifies that there is a real service sitting at that URL, and that we have the right keys and certs

get_bucket()[source]
get_registry_uid(service_uid)[source]

Return the UID of the registry that initially registered the service with UID ‘service_uid’.

get_service(service_uid=None, service_url=None)[source]

Load and return the service with specified url or uid from the registry. This will consult with other registry services to find the matching service

get_service_key(service_uid=None, service_url=None)[source]

Return the key for the passed service in the object store

is_test_registry()[source]

Return whether or not this is a test registry (only used while testing the code)

register_service(service, force_new_uid=False)[source]

Register the passed service

registry_root()[source]

Return the root ID of this registry

registry_uid()[source]

Return the UID of this registry