← Về thư mục
openai4s/storage/user_keys.py
- create_user_key_schema · function · L41-L43 — def create_user_key_schema(conn: sqlite3.Connection) -> None
- UserKeyRecord · class · L47-L65 — class UserKeyRecord
- public · method · L56-L65 — def public(self) -> dict[str, Any]
- UserKeyRepository · class · L68-L167 — class UserKeyRepository
- init · method · L71-L79 — def init( self, conn: sqlite3.Connection, lock: Any, clock_ms: Callable[[], int], ) -> None
- set_ref · method · L81-L92 — def set_ref(self, user_id: str, provider: str, secret_ref: str) -> None
- get · method · L94-L109 — def get(self, user_id: str, provider: str) -> UserKeyRecord | None
- list_for_user · method · L111-L127 — def list_for_user(self, user_id: str) -> list[UserKeyRecord]
- delete · method · L129-L149 — def delete(self, user_id: str, provider: str, *, secrets: Any = None) -> bool
- delete_all_for_user · method · L151-L167 — def delete_all_for_user(self, user_id: str, *, secrets: Any = None) -> int
- _delete_secret · function · L170-L178 — def _delete_secret(secrets: Any, ref: str) -> None
- secret_name · function · L186-L194 — def secret_name(user_id: str, provider: str) -> str