The oslo_privsep.comm Module

The oslo_privsep.comm Module

Serialization/Deserialization for privsep.

The wire format is a stream of msgpack objects encoding primitive python datatypes. Msgpack ‘raw’ is assumed to be a valid utf8 string (msgpack 2.0 ‘bin’ type is used for bytes). Python lists are converted to tuples during serialization/deserialization.

class oslo_privsep.comm.ClientChannel(sock)

Bases: object

close()
out_of_band(msg)

Received OOB message. Subclasses might want to override this.

send_recv(msg)
class oslo_privsep.comm.Deserializer(readsock)

Bases: six.Iterator

class oslo_privsep.comm.Future(lock)

Bases: object

A very simple object to track the return of a function call

result()

Must already be holding lock used in constructor

set_exception(exc)

Must already be holding lock used in constructor

set_result(data)

Must already be holding lock used in constructor

class oslo_privsep.comm.Serializer(writesock)

Bases: object

close()
send(msg)
class oslo_privsep.comm.ServerChannel(sock)

Bases: six.Iterator

Server-side twin to ClientChannel

send(msg)
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.