Module
class Module extends AbstractObject implements IdAble
A Dagger module.
Properties
| $lastQuery | from AbstractObject |
Methods
No description
The dependencies of the module.
The doc string of the module, if any
Enumerations served by this module.
The generated files and directories made on top of the module source's context directory.
A unique identifier for this Module.
Interfaces served by this module.
The introspection schema JSON file for this module.
The name of the module
Objects served by this module.
The container that runs the module's entrypoint. It will fail to execute if the module doesn't compile.
Serve a module's API in the current session.
The source for the module.
Forces evaluation of the module, including any loading into the engine and associated validation.
User-defined default values, loaded from local .env files.
Retrieves the module with the given description
This module plus the given Interface type and associated functions
This module plus the given Object type and associated functions.
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
array
dependencies()
The dependencies of the module.
at line 28
string
description()
The doc string of the module, if any
at line 37
array
enums()
Enumerations served by this module.
at line 46
Directory
generatedContextDirectory()
The generated files and directories made on top of the module source's context directory.
at line 55
AbstractId
id()
A unique identifier for this Module.
at line 64
array
interfaces()
Interfaces served by this module.
at line 77
File
introspectionSchemaJSON()
The introspection schema JSON file for this module.
This file represents the schema visible to the module's source code, including all core types and those from the dependencies.
Note: this is in the context of a module, so some core types may be hidden.
at line 86
string
name()
The name of the module
at line 95
array
objects()
Objects served by this module.
at line 104
Container
runtime()
The container that runs the module's entrypoint. It will fail to execute if the module doesn't compile.
at line 113
SDKConfig
sdk()
The SDK config used by this module.
at line 124
void
serve(bool|null $includeDependencies = null)
Serve a module's API in the current session.
Note: this can only be called once per session. In the future, it could return a stream or service to remove the side effect.
at line 136
ModuleSource
source()
The source for the module.
at line 145
ModuleId
sync()
Forces evaluation of the module, including any loading into the engine and associated validation.
at line 154
EnvFile
userDefaults()
User-defined default values, loaded from local .env files.
at line 163
Module
withDescription(string $description)
Retrieves the module with the given description
at line 173
Module
withEnum(TypeDef $enum)
This module plus the given Enum type and associated values
at line 183
Module
withInterface(TypeDef $iface)
This module plus the given Interface type and associated functions
at line 193
Module
withObject(TypeDef $object)
This module plus the given Object type and associated functions.