cinder.rpc module

cinder.rpc module

init(conf)
cleanup()
set_defaults(control_exchange)
add_extra_exmods(*args)
clear_extra_exmods()
get_allowed_exmods()
class RequestContextSerializer(base)

Bases: oslo_messaging.serializer.Serializer

deserialize_context(context)

Deserialize a dictionary into a request context.

Parameters:ctxt – Request context dictionary
Returns:Deserialized form of entity
deserialize_entity(context, entity)

Deserialize something from primitive form.

Parameters:
  • ctxt – Request context, in deserialized form
  • entity – Primitive to be deserialized
Returns:

Deserialized form of entity

serialize_context(context)

Serialize a request context into a dictionary.

Parameters:ctxt – Request context
Returns:Serialized form of context
serialize_entity(context, entity)

Serialize something to primitive form.

Parameters:
  • ctxt – Request context, in deserialized form
  • entity – Entity to be serialized
Returns:

Serialized form of entity

get_client(target, version_cap=None, serializer=None)
get_server(target, endpoints, serializer=None)
get_notifier(*args, **kwargs)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.