Appearance
sdk.container_service
Event-driven open-container lifecycle, indexing, roles, and bounded traversal. Physical identities are stable for one session generation; runtime container ids may be reused by the client and are therefore never exposed as identity.
lua
local M = require("sdk.container_service")Constants
Lua 5.4 has no enums — these are integer (or string) fields on the module.
| Name | Value | Summary |
|---|---|---|
Service | Service | Container service class. |
new
function · new(options?: ContainerServiceOptions): ContainerService?, ErrorMessage?
Fresh service instance with its own generation and broker owner name. autostart binds engine events unless opts.autostart == false (host tests).
Parameters
| Name | Type | Summary |
|---|---|---|
options | ContainerServiceOptions | — |
Returns
| Type | Summary |
|---|---|
ContainerService?, ErrorMessage? | — |
get
function · get(options?: ContainerServiceOptions): ContainerService?, ErrorMessage?
Process singleton. The second call ignores most opts, so role rules must be supplied on the first get or they never apply.
Parameters
| Name | Type | Summary |
|---|---|---|
options | ContainerServiceOptions | — |
Returns
| Type | Summary |
|---|---|
ContainerService?, ErrorMessage? | — |
Get
alias · Get(options?: ContainerServiceOptions): ContainerService?, ErrorMessage?
Same as get.
Alias
Same as get.
Parameters
| Name | Type | Summary |
|---|---|---|
options | ContainerServiceOptions | — |
Returns
| Type | Summary |
|---|---|
ContainerService?, ErrorMessage? | — |