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

Method with_hostname

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

Configures a hostname which can be used by clients within the session to reach this container. Parameters ---------- hostname: The hostname to use.

(self, hostname: str)

Source from the content-addressed store, hash-verified

14613 await _ctx.execute()
14614
14615 def with_hostname(self, hostname: str) -> Self:
14616 """Configures a hostname which can be used by clients within the session
14617 to reach this container.
14618
14619 Parameters
14620 ----------
14621 hostname:
14622 The hostname to use.
14623 """
14624 _args = [
14625 Arg("hostname", hostname),
14626 ]
14627 _ctx = self._select("withHostname", _args)
14628 return Service(_ctx)
14629
14630 def with_(self, cb: Callable[["Service"], "Service"]) -> "Service":
14631 """Call the provided callable with current Service.

Callers 6

servicesMethod · 0.80
servicesMethod · 0.80
servicesMethod · 0.80
servicesMethod · 0.80
servicesMethod · 0.80
servicesMethod · 0.80

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ServiceClass · 0.70

Tested by

no test coverage detected