Rosetta
Public Member Functions | Static Private Attributes | List of all members
pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler Class Reference
Inheritance diagram for pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler:
Inheritance graph
[legend]

Public Member Functions

None __init__ (self, str host, int port)
 
None set_masked_key (self, str task_id, bytes masked_key)
 
None pop_masked_key (self, str task_id)
 
None clear_masked_keys (self)
 
None zeroize (self, Optional[bytearray] buffer)
 
None close (self)
 
Any sanitize_record_arg (self, Any arg)
 
Any sanitize_record_args (self, Any args)
 
bytes makePickle (self, logging.LogRecord record)
 

Static Private Attributes

tuple _supported_types = (str, int, float, bool, type(None), bytes, bytearray)
 

Additional Inherited Members

- Static Public Member Functions inherited from pyrosetta.distributed.cluster.logging_handlers.HandlerMixin
L lock (L func)
 

Detailed Description

Subclass of `logging.handlers.SocketHandler` using MessagePack and hash-based message
authentication codes (HMAC).

Constructor & Destructor Documentation

◆ __init__()

None pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.__init__ (   self,
str  host,
int  port 
)

Member Function Documentation

◆ clear_masked_keys()

None pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.clear_masked_keys (   self)

◆ close()

None pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.close (   self)

◆ makePickle()

bytes pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.makePickle (   self,
logging.LogRecord  record 
)

◆ pop_masked_key()

None pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.pop_masked_key (   self,
str  task_id 
)

◆ sanitize_record_arg()

Any pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.sanitize_record_arg (   self,
Any  arg 
)
Sanitize a single element of log record `args` for MessagePack.

References pyrosetta.distributed.cluster.str.

Referenced by pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.sanitize_record_args().

◆ sanitize_record_args()

Any pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.sanitize_record_args (   self,
Any  args 
)

◆ set_masked_key()

None pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.set_masked_key (   self,
str  task_id,
bytes  masked_key 
)
Set a task ID and HMAC key into the cache.

◆ zeroize()

None pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.zeroize (   self,
Optional[bytearray]  buffer 
)

Member Data Documentation

◆ _supported_types

tuple pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler._supported_types = (str, int, float, bool, type(None), bytes, bytearray)
staticprivate

The documentation for this class was generated from the following file: