Host
class Host extends AbstractObject implements IdAble
Information about the host environment.
Properties
$lastQuery | from AbstractObject |
Methods
No description
Accesses a container image on the host.
Accesses a directory on the host.
Search for a file or directory by walking up the tree from system workdir. Return its relative path. If no match, return null
A unique identifier for this Host.
Creates a service that forwards traffic to a specified address via the host.
Sets a secret given a user-defined name and the file path on the host, and returns the secret.
Creates a tunnel that forwards traffic from the host to a service.
Accesses a Unix socket on the host.
Details
in
AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
in
AbstractObject at line 19
protected null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
at line 19
Container
containerImage(string $name)
Accesses a container image on the host.
at line 29
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.
at line 56
File
file(string $path, bool|null $noCache = false)
Accesses a file on the host.
at line 69
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
at line 82
AbstractId
id()
A unique identifier for this Host.
at line 91
Service
service(array $ports, string|null $host = 'localhost')
Creates a service that forwards traffic to a specified address via the host.
at line 106
Secret
setSecretFile(string $name, string $path)
Sets a secret given a user-defined name and the file path on the host, and returns the secret.
The file is limited to a size of 512000 bytes.
at line 117
Service
tunnel(Service $service, bool|null $native = false, array|null $ports = null)
Creates a tunnel that forwards traffic from the host to a service.
at line 133
Socket
unixSocket(string $path)
Accesses a Unix socket on the host.