MCPcopy Create free account
hub / github.com/ceph/ceph / __init__

Method __init__

src/ceph-node-proxy/ceph_node_proxy/api.py:253–265  ·  view source on GitHub ↗
(self, node_proxy_mgr: "NodeProxyManager")

Source from the content-addressed store, hash-verified

251
252class NodeProxyApi(Thread):
253 def __init__(self, node_proxy_mgr: "NodeProxyManager") -> None:
254 super().__init__()
255 self.log = get_logger(__name__)
256 self.cp_shutdown_event = Event()
257 self.node_proxy_mgr = node_proxy_mgr
258 self.username = self.node_proxy_mgr.username
259 self.password = self.node_proxy_mgr.password
260 self.ssl_crt = self.node_proxy_mgr.api_ssl_crt
261 self.ssl_key = self.node_proxy_mgr.api_ssl_key
262 self.system = self.node_proxy_mgr.system
263 self.reporter_agent = self.node_proxy_mgr.reporter_agent
264 self.config = self.node_proxy_mgr.config
265 self.api = API(self.system, self.reporter_agent, self.config)
266
267 def check_auth(self, realm: str, username: str, password: str) -> bool:
268 return self.username == username and self.password == password

Callers

nothing calls this directly

Calls 4

get_loggerFunction · 0.90
APIClass · 0.70
EventClass · 0.50
__init__Method · 0.45

Tested by

no test coverage detected