Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /khulnasoft_DockNet /backend /src /docknet /operations /components.py
| from abc import ABC, abstractmethod | |
| from typing import Optional | |
| from docknet.operations import ( | |
| AuthOperations, | |
| ExtensionOperations, | |
| FileOperations, | |
| JobOperations, | |
| JsonDocumentOperations, | |
| ProjectOperations, | |
| SeedOperations, | |
| ServiceOperations, | |
| SystemOperations, | |
| ) | |
| from docknet.schema.extension import CORE_EXTENSION_ID | |
| from docknet.utils.state_utils import GlobalState, RequestState | |
| class ComponentOperations(ABC): | |
| def global_state(self) -> GlobalState: | |
| pass | |
| def request_state(self) -> RequestState: | |
| pass | |
| def get_project_manager(self) -> ProjectOperations: | |
| """Returns a Project Manager instance.""" | |
| pass | |
| def get_auth_manager(self) -> AuthOperations: | |
| """Returns an Auth Manager instance.""" | |
| pass | |
| def get_system_manager(self) -> SystemOperations: | |
| """Returns a System Manager instance.""" | |
| pass | |
| def get_extension_manager(self) -> ExtensionOperations: | |
| """Returns an Extension Manager instance.""" | |
| pass | |
| def get_json_db_manager(self) -> JsonDocumentOperations: | |
| """Returns a JSON DB Manager instance.""" | |
| pass | |
| def get_file_manager( | |
| self, extension_id: Optional[str] = CORE_EXTENSION_ID | |
| ) -> FileOperations: | |
| """Returns a File Manager instance. | |
| Depending on the provided `extenion_id`, this is either the configured core component | |
| or an initialized extension client. | |
| Args: | |
| extension_id: ID of the requested extension. Use `core` for the platform components. | |
| """ | |
| pass | |
| def get_job_manager( | |
| self, extension_id: Optional[str] = CORE_EXTENSION_ID | |
| ) -> JobOperations: | |
| """Returns a Job Manager instance. | |
| Depending on the provided `extenion_id`, this is either the configured core component | |
| or an initialized extension client. | |
| Args: | |
| extension_id: ID of the requested extension. Use `core` for the platform components. | |
| """ | |
| pass | |
| def get_service_manager( | |
| self, extension_id: Optional[str] = CORE_EXTENSION_ID | |
| ) -> ServiceOperations: | |
| """Returns a Service Manager instance. | |
| Depending on the provided `extenion_id`, this is either the configured core component | |
| or an initialized extension client. | |
| Args: | |
| extension_id: ID of the requested extension. Use `core` for the platform components. | |
| """ | |
| pass | |
| def get_seed_manager(self) -> SeedOperations: | |
| pass | |
Xet Storage Details
- Size:
- 2.79 kB
- Xet hash:
- 4a517494f1b765e335867c06f4b4be0edf380135256b21f94a015a209dff9c7f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.