获取所有可用凭证列表
(self)
| 319 | return None |
| 320 | |
| 321 | async def get_available_credentials_list(self) -> List[str]: |
| 322 | """获取所有可用凭证列表""" |
| 323 | self._ensure_initialized() |
| 324 | |
| 325 | try: |
| 326 | async with self._pool.acquire() as conn: |
| 327 | rows = await conn.fetch(""" |
| 328 | SELECT filename FROM credentials |
| 329 | WHERE disabled = 0 |
| 330 | ORDER BY rotation_order ASC |
| 331 | """) |
| 332 | return [r["filename"] for r in rows] |
| 333 | except Exception as e: |
| 334 | log.error(f"Error getting available credentials list: {e}") |
| 335 | return [] |
| 336 | |
| 337 | # ============ StorageBackend 协议方法 ============ |
| 338 |
nothing calls this directly
no test coverage detected