MCPcopy Create free account
hub / github.com/dagger/dagger / Container

Class Container

sdk/python/tests/client/test_inputs.py:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32class Container(Type):
33 @typecheck
34 def with_exec(self, args: Sequence[str]) -> "Container":
35 return Container(self._ctx)
36
37 @typecheck
38 def with_env_variable(self, name: str, value: str) -> "Container":
39 return Container(self._ctx)
40
41 @typecheck
42 def with_directory(self, path: str, directory: "Directory") -> "Container":
43 return Container(self._ctx)
44
45 @typecheck
46 def with_file(self, path: str, source: "File") -> "Container":
47 return Container(self._ctx)
48
49
50class Directory(Type):

Callers 5

containerMethod · 0.70
with_execMethod · 0.70
with_env_variableMethod · 0.70
with_directoryMethod · 0.70
with_fileMethod · 0.70

Calls

no outgoing calls

Tested by 5

containerMethod · 0.56
with_execMethod · 0.56
with_env_variableMethod · 0.56
with_directoryMethod · 0.56
with_fileMethod · 0.56