Directory
class Directory extends AbstractObject implements IdAble
A directory.
Properties
$lastQuery | from AbstractObject |
Methods
No description
Converts this directory into a git repository
Load the directory as a Dagger module source
Gets the difference between this directory and an another directory.
Return the directory's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
Builds a new Docker container from this directory.
Returns a list of files and directories at the given path.
Writes the contents of the directory to a path on the host.
Retrieves this directory as per exclude/include filters.
Returns a list of files and directories that matche the given pattern.
A unique identifier for this Directory.
Returns the name of the directory.
Force evaluation in the engine.
Opens an interactive terminal in new container with this directory mounted inside.
Retrieves this directory plus a directory written at the given path.
Retrieves this directory plus the contents of the given file copied to the given path.
Retrieves this directory plus the contents of the given files copied to the given path.
Retrieves this directory plus a new directory created at the given path.
Retrieves this directory plus a new file written at the given path.
Retrieves this directory with all file/dir timestamps set to the given time.
Retrieves this directory with the directory at the given path removed.
Retrieves this directory with the file at the given path removed.
Retrieves this directory with the files at the given paths removed.
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
GitRepository
asGit()
Converts this directory into a git repository
at line 28
Module
asModule(string|null $sourceRootPath = '.')
Load the directory as a Dagger module source
at line 40
ModuleSource
asModuleSource(string|null $sourceRootPath = '.')
Load the directory as a Dagger module source
at line 52
Directory
diff(Directory $other)
Gets the difference between this directory and an another directory.
at line 62
string
digest()
Return the directory's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
at line 71
Directory
directory(string $path)
Retrieves a directory at the given path.
at line 81
Container
dockerBuild(Platform|null $platform = null, string|null $dockerfile = 'Dockerfile', string|null $target = '', array|null $buildArgs = null, array|null $secrets = null)
Builds a new Docker container from this directory.
at line 110
array
entries(string|null $path = null)
Returns a list of files and directories at the given path.
at line 122
string
export(string $path, bool|null $wipe = false)
Writes the contents of the directory to a path on the host.
at line 135
File
file(string $path)
Retrieves a file at the given path.
at line 145
Directory
filter(array|null $exclude = null, array|null $include = null)
Retrieves this directory as per exclude/include filters.
at line 160
array
glob(string $pattern)
Returns a list of files and directories that matche the given pattern.
at line 170
AbstractId
id()
A unique identifier for this Directory.
at line 179
string
name()
Returns the name of the directory.
at line 188
DirectoryId
sync()
Force evaluation in the engine.
at line 197
Directory
terminal(array|null $cmd = null, bool|null $experimentalPrivilegedNesting = false, bool|null $insecureRootCapabilities = false, Container|null $container = null)
Opens an interactive terminal in new container with this directory mounted inside.
at line 222
Directory
withDirectory(string $path, Directory $directory, array|null $exclude = null, array|null $include = null)
Retrieves this directory plus a directory written at the given path.
at line 243
Directory
withFile(string $path, File $source, int|null $permissions = null)
Retrieves this directory plus the contents of the given file copied to the given path.
at line 257
Directory
withFiles(string $path, array $sources, int|null $permissions = null)
Retrieves this directory plus the contents of the given files copied to the given path.
at line 271
Directory
withNewDirectory(string $path, int|null $permissions = 420)
Retrieves this directory plus a new directory created at the given path.
at line 284
Directory
withNewFile(string $path, string $contents, int|null $permissions = 420)
Retrieves this directory plus a new file written at the given path.
at line 298
Directory
withTimestamps(int $timestamp)
Retrieves this directory with all file/dir timestamps set to the given time.
at line 308
Directory
withoutDirectory(string $path)
Retrieves this directory with the directory at the given path removed.
at line 318
Directory
withoutFile(string $path)
Retrieves this directory with the file at the given path removed.
at line 328
Directory
withoutFiles(array $paths)
Retrieves this directory with the files at the given paths removed.