docs/static/reference/php/Dagger/Host.html
class Host extends AbstractObject implements IdAble
Information about the host environment.
| | $lastQuery | | from AbstractObject |
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
from AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from AbstractObject
containerImage(string $name)
Accesses a container image on the host.
directory(string $path, array|null $exclude = null, array|null $include = null, bool|null $noCache = false, bool|null $gitignore = false)
Accesses a directory on the host.
file(string $path, bool|null $noCache = false)
Accesses a file on the host.
string
findUp(string $name, bool|null $noCache = false)
Search for a file or directory by walking up the tree from system workdir. Return its relative path. If no match, return null
id()
A unique identifier for this Host.
service(array $ports, string|null $host = 'localhost')
Creates a service that forwards traffic to a specified address via the host.
tunnel(Service $service, bool|null $native = false, array|null $ports = null)
Creates a tunnel that forwards traffic from the host to a service.
unixSocket(string $path)
Accesses a Unix socket on the host.
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain) No description
| AbstractClient | $client | | | QueryBuilderChain | $queryBuilderChain | |
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)No description
| QueryBuilder | $leafQueryBuilder | | | string | $leafKey | |
| null|array|string|int|float|bool | |
Container containerImage(string $name)Accesses a container image on the host.
| string | $name | |
| Container | |
Directory directory(string $path, array|null $exclude = null, array|null $include = null, bool|null $noCache = false, bool|null $gitignore = false)Accesses a directory on the host.
| string | $path | | | array|null | $exclude | | | array|null | $include | | | bool|null | $noCache | | | bool|null | $gitignore | |
| Directory | |
File file(string $path, bool|null $noCache = false)Accesses a file on the host.
| string | $path | | | bool|null | $noCache | |
| File | |
string findUp(string $name, bool|null $noCache = false)Search for a file or directory by walking up the tree from system workdir. Return its relative path. If no match, return null
| string | $name | | | bool|null | $noCache | |
| string | |
AbstractId id()A unique identifier for this Host.
| AbstractId | |
Service service(array $ports, string|null $host = 'localhost')Creates a service that forwards traffic to a specified address via the host.
| array | $ports | | | string|null | $host | |
| Service | |
Service tunnel(Service $service, bool|null $native = false, array|null $ports = null)Creates a tunnel that forwards traffic from the host to a service.
| Service | $service | | | bool|null | $native | | | array|null | $ports | |
| Service | |
Socket unixSocket(string $path)Accesses a Unix socket on the host.
| string | $path | |
| Socket | |
Generated by Doctum, a API Documentation generator and fork of Sami.