Job Components: `Interfaces Context Worker Context AP Is`
interfaces/context.WorkerContextAPIs
WorkerContext includes the type definitions for the APIs available to Worker or Slicer. This extends the Terafoundation Context.
Hierarchy
-
↳
WorkerContextAPIs
Table of contents
Properties
Methods
Properties
assets
• assets: AssetsAPI
Includes an API for getting a client from Terafoundation
Defined in
packages/job-components/src/interfaces/context.ts:163
executionContext
• executionContext: ExecutionContextAPI
An API for registering and loading the new Job APIs
Defined in
packages/job-components/src/interfaces/context.ts:175
foundation
• Readonly
foundation: FoundationApis
Inherited from
Defined in
packages/job-components/src/interfaces/context.ts:119
job_runner
• job_runner: JobRunnerAPI
Includes an API for getting a opConfig from the job
Defined in
packages/job-components/src/interfaces/context.ts:171
op_runner
• op_runner: OpRunnerAPI
Includes an API for getting a client from Terafoundation
Defined in
packages/job-components/src/interfaces/context.ts:167
Methods
registerAPI
▸ registerAPI(namespace
, apis
): void
Parameters
Name | Type |
---|---|
namespace | string |
apis | any |
Returns
void