Skip to content

Commit 3233cd6

Browse files
authored
docs: add api docs for expose (#1130)
* docs: add api docs for expose Signed-off-by: nullday <[email protected]> * Reformat Signed-off-by: nullday <[email protected]> Signed-off-by: nullday <[email protected]>
1 parent 7bf8c00 commit 3233cd6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

envd/api/runtime/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ def command(commands: Dict[str, str]):
4242
"""
4343

4444

45-
def expose(envd_port: str, host_port: Optional[str], service: Optional[str]):
45+
def expose(
46+
envd_port: str,
47+
host_port: Optional[str],
48+
service: Optional[str],
49+
listen_addr: Optional[str],
50+
):
4651
"""Expose port to host
4752
Proposal: https://github.com/tensorchord/envd/pull/780
4853
@@ -51,6 +56,7 @@ def expose(envd_port: str, host_port: Optional[str], service: Optional[str]):
5156
host_port (Optional[str]): port in the host, if not provided or
5257
`host_port=0`, `envd` will randomly choose a free port
5358
service (Optional[str]): service name
59+
listen_addr (Optional[str]): address to listen on
5460
"""
5561

5662

0 commit comments

Comments
 (0)