Expand description
Extensions: the names, the NATS subjects and the messages of an
ext_call, shared by the platform, the worker, the extension runner,
the native services and the guest SDK.
Structs§
- Call
Context - Who calls, and until when the caller waits.
- Caller
Service - ExtFailure
- Why an extension refused or failed a call, in its own words.
- Ready
- What a native service answers once it serves its extensions.
Enums§
- ExtReply
- A provider’s answer:
{"ok": <value>}or{"error": {"code": …, "message": …}}.
Constants§
- ANY_
CALLER - A caller that stands for every service of the tenant.
- NAME_
MAX - The longest extension name, in bytes.
- PROTOCOL_
VERSION - The version of
ExtRequestandReadythis crate speaks. - QUEUE_
GROUP - The queue group every provider of an extension subscribes in, so each call reaches one of them.
- RESERVED_
CODES - The codes a runner or a provider answers for the transport rather than for the extension: each is the label of the kind the caller sees.
- SOCKET_
VAR - The variable naming the Unix socket a native service serves on.
- SUBJECT_
PREFIX - The subject every call subject starts with.
- TOKEN_
VAR - The variable holding the token the extension runner sends a native
service as
Authorization: Bearer <token>with every request; each start of a child has its own.
Functions§
- call_
subject - The subject the calls of the tenant
tenantto the extensionnametravel on. - callers
- The callers of an extension as they are stored: each a service name or
ANY_CALLER, at least one, each once, sorted. - deploy_
subject - The subject a deploy or rollback of the tenant’s native service
serviceis announced on, for the extension runner. - is_
valid_ extension_ name - Whether
nameis an extension name: 1 toNAME_MAXbytes of dot-separated segments of[a-z0-9-]+(google.token,pdf.render-v2). - name_
violation - Why
nameis not an extension name;Nonewhen it is one. - undeploy_
subject - The subject the removal of the tenant’s native service
serviceis announced on.