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

Method with_annotation

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

Retrieves this container plus the given OCI annotation. Parameters ---------- name: The name of the annotation. value: The value of the annotation.

(self, name: str, value: str)

Source from the content-addressed store, hash-verified

2800 return await _ctx.execute(str)
2801
2802 def with_annotation(self, name: str, value: str) -> Self:
2803 """Retrieves this container plus the given OCI annotation.
2804
2805 Parameters
2806 ----------
2807 name:
2808 The name of the annotation.
2809 value:
2810 The value of the annotation.
2811 """
2812 _args = [
2813 Arg("name", name),
2814 Arg("value", value),
2815 ]
2816 _ctx = self._select("withAnnotation", _args)
2817 return Container(_ctx)
2818
2819 def with_default_args(self, args: list[str]) -> Self:
2820 """Configures default arguments for future commands. Like CMD in

Callers 6

buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ContainerClass · 0.70

Tested by

no test coverage detected