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

Method import_

sdk/python/src/dagger/client/gen.py:2405–2426  ·  view source on GitHub ↗

Reads the container from an OCI tarball. Parameters ---------- source: File to read the container from. tag: Identifies the tag to import from the archive, if the archive bundles multiple tags.

(
        self,
        source: "File",
        *,
        tag: str | None = "",
    )

Source from the content-addressed store, hash-verified

2403 return await _ctx.execute(str)
2404
2405 def import_(
2406 self,
2407 source: "File",
2408 *,
2409 tag: str | None = "",
2410 ) -> Self:
2411 """Reads the container from an OCI tarball.
2412
2413 Parameters
2414 ----------
2415 source:
2416 File to read the container from.
2417 tag:
2418 Identifies the tag to import from the archive, if the archive
2419 bundles multiple tags.
2420 """
2421 _args = [
2422 Arg("source", source),
2423 Arg("tag", tag, ""),
2424 ]
2425 _ctx = self._select("import", _args)
2426 return Container(_ctx)
2427
2428 async def label(self, name: str) -> str | None:
2429 """Retrieves the value of the specified label.

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ContainerClass · 0.70

Tested by

no test coverage detected