← Về thư mục
skills/remote-compute-nvidia/provider.py
- NvidiaProvider · class · L58-L356 — class NvidiaProvider: # Scrubbed from the process env in the base prologue BEFORE any op runs, # so a forwarded key can never leak through a child's environment.
- init · method · L68-L71 — def init(self, *, repl: bool = False)
- apply_auth · method · L74-L82 — def apply_auth(self, creds: dict[str, str]) -> None
- import_and_patch · method · L84-L96 — def import_and_patch(self) -> None
- install_unauth_hook · method · L98-L102 — def install_unauth_hook(self, on_expired: Callable[[], NoReturn]) -> None: # REST auth is per-request (the job script carries the key); there is # no long-lived authenticated channel to watch for expiry, so this is # a no-op. Kept to satisfy the ByocProvider protocol.
- create_sandbox · method · L105-L128 — def create_sandbox( self, spec: dict[str, Any], install_id: str, tags: dict[str, str] | None = None ) -> str
- _create_self_hosted · method · L130-L167 — def _create_self_hosted(self, spec: dict, name: str, labels: list[str]) -> str
- _create_hosted · method · L169-L185 — def _create_hosted(self, spec: dict, name: str, labels: list[str]) -> str
- exec · method · L187-L232 — def exec( self, sandbox_id: str, argv: list[str], *, stdin: Iterable[bytes] | None = None, env: dict[str, str] | None = None, timeout: int | None = None, ) -> ExecResult
- list_owned · method · L234-L256 — def list_owned(self, install_id: str) -> list[dict[str, Any]]
- read_owner · method · L258-L273 — def read_owner(self, sandbox_id: str) -> str | None
- terminate · method · L275-L281 — def terminate(self, sandbox_id: str) -> None
- _docker_available · method · L285-L290 — def _docker_available() -> bool
- _docker · method · L292-L311 — def _docker( self, args: list[str], *, stdin: bytes | None = None, env: dict | None = None ) -> str
- _label_args · method · L314-L318 — def _label_args(labels: dict[str, str]) -> list[str]
- _parse_labels · method · L321-L327 — def _parse_labels(raw: str) -> dict[str, str]
- _map_err_output · method · L329-L353 — def _map_err_output(self, stderr: str) -> ByocError
- _map_err · method · L355-L356 — def _map_err(self, e: Exception) -> ByocError
- _ExecAdapter · class · L359-L382 — class _ExecAdapter
- init · method · L363-L364 — def init(self, proc: subprocess.Popen)
- stdout · method · L367-L371 — def stdout(self) -> Iterable[bytes]
- stderr · method · L374-L378 — def stderr(self) -> Iterable[bytes]
- wait · method · L380-L382 — def wait(self) -> int