Skip to content

Commit f296713

Browse files
committed
WIP: docker client
1 parent ef8b4c3 commit f296713

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/codegen/cli/sdk/function.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Function:
2525
codemod_id: int
2626
version_id: int
2727
_api_client: RestAPI | None = None
28+
_docker_client: DockerClient | None = None
2829

2930
@classmethod
3031
def lookup(cls, name: str) -> "Function":
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""Client for interacting with the locally hosted sandbox server hosted on a docker container."""
2+
3+
from codegen.runner.clients.server_client import LocalServerClient
4+
5+
6+
class DockerClient(LocalServerClient):
7+
"""Client for interacting with the locally hosted sandbox server hosted on a docker container."""
8+
9+
def __init__(self, repo_config: RepoConfig):
10+
super().__init__(repo_config, host, port)

0 commit comments

Comments
 (0)