Back to Dagger

Module

docs/static/reference/php/Dagger/Module.html

0.20.79.0 KB
Original Source

Module

class Module extends AbstractObject implements IdAble

A Dagger module.

Properties

| | $lastQuery | | from AbstractObject |

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

from AbstractObject

null|array|string|int|float|bool

queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

from AbstractObject

Check

check(string $name)

Return the check defined by the module with the given name. Must match to exactly one check.

CheckGroup

checks(array|null $include = null)

Return all checks defined by the module

array

dependencies()

The dependencies of the module.

string

description()

The doc string of the module, if any

array

enums()

Enumerations served by this module.

Directory

generatedContextDirectory()

The generated files and directories made on top of the module source's context directory.

Generator

generator(string $name)

Return the generator defined by the module with the given name. Must match to exactly one generator.

GeneratorGroup

generators(array|null $include = null)

Return all generators defined by the module

AbstractId

id()

A unique identifier for this Module.

array

interfaces()

Interfaces served by this module.

File

introspectionSchemaJSON()

The introspection schema JSON file for this module.

string

name()

The name of the module

array

objects()

Objects served by this module.

Container

runtime()

The container that runs the module's entrypoint. It will fail to execute if the module doesn't compile.

SDKConfig

sdk()

The SDK config used by this module.

void

serve(bool|null $includeDependencies = null, bool|null $entrypoint = null)

Serve a module's API in the current session.

UpGroup

services(array|null $include = null)

Return all services defined by the module

ModuleSource

source()

The source for the module.

ModuleId

sync()

Forces evaluation of the module, including any loading into the engine and associated validation.

EnvFile

userDefaults()

User-defined default values, loaded from local .env files.

Module

withDescription(string $description)

Retrieves the module with the given description

Module

withEnum(TypeDef $enum)

This module plus the given Enum type and associated values

Module

withInterface(TypeDef $iface)

This module plus the given Interface type and associated functions

Module

withObject(TypeDef $object)

This module plus the given Object type and associated functions.

Details

in AbstractObject at line 13 __construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

| AbstractClient | $client | | | QueryBuilderChain | $queryBuilderChain | |

in AbstractObject at line 19 protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

| QueryBuilder | $leafQueryBuilder | | | string | $leafKey | |

Return Value

| null|array|string|int|float|bool | |

at line 19 Check check(string $name)

Return the check defined by the module with the given name. Must match to exactly one check.

Parameters

| string | $name | |

Return Value

| Check | |

at line 29 CheckGroup checks(array|null $include = null)

Return all checks defined by the module

Parameters

| array|null | $include | |

Return Value

| CheckGroup | |

at line 41 array dependencies()

The dependencies of the module.

Return Value

| array | |

at line 50 string description()

The doc string of the module, if any

Return Value

| string | |

at line 59 array enums()

Enumerations served by this module.

Return Value

| array | |

at line 68 Directory generatedContextDirectory()

The generated files and directories made on top of the module source's context directory.

Return Value

| Directory | |

at line 77 Generator generator(string $name)

Return the generator defined by the module with the given name. Must match to exactly one generator.

Parameters

| string | $name | |

Return Value

| Generator | |

at line 87 GeneratorGroup generators(array|null $include = null)

Return all generators defined by the module

Parameters

| array|null | $include | |

Return Value

| GeneratorGroup | |

at line 99 AbstractId id()

A unique identifier for this Module.

Return Value

| AbstractId | |

at line 108 array interfaces()

Interfaces served by this module.

Return Value

| array | |

at line 121 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.

Return Value

| File | |

at line 130 string name()

The name of the module

Return Value

| string | |

at line 139 array objects()

Objects served by this module.

Return Value

| array | |

at line 148 Container runtime()

The container that runs the module's entrypoint. It will fail to execute if the module doesn't compile.

Return Value

| Container | |

at line 157 SDKConfig sdk()

The SDK config used by this module.

Return Value

| SDKConfig | |

at line 168 void serve(bool|null $includeDependencies = null, bool|null $entrypoint = 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.

Parameters

| bool|null | $includeDependencies | | | bool|null | $entrypoint | |

Return Value

| void | |

at line 183 UpGroup services(array|null $include = null)

Return all services defined by the module

Parameters

| array|null | $include | |

Return Value

| UpGroup | |

at line 195 ModuleSource source()

The source for the module.

Return Value

| ModuleSource | |

at line 204 ModuleId sync()

Forces evaluation of the module, including any loading into the engine and associated validation.

Return Value

| ModuleId | |

at line 213 EnvFile userDefaults()

User-defined default values, loaded from local .env files.

Return Value

| EnvFile | |

at line 222 Module withDescription(string $description)

Retrieves the module with the given description

Parameters

| string | $description | |

Return Value

| Module | |

at line 232 Module withEnum(TypeDef $enum)

This module plus the given Enum type and associated values

Parameters

| TypeDef | $enum | |

Return Value

| Module | |

at line 242 Module withInterface(TypeDef $iface)

This module plus the given Interface type and associated functions

Parameters

| TypeDef | $iface | |

Return Value

| Module | |

at line 252 Module withObject(TypeDef $object)

This module plus the given Object type and associated functions.

Parameters

| TypeDef | $object | |

Return Value

| Module | |

Generated by Doctum, a API Documentation generator and fork of Sami.