@terascope/job-components / register-apis
register-apis
Functions
getAssetPath()
getAssetPath(
assetDirs,assets,name):Promise<string>
Defined in: packages/job-components/src/register-apis.ts:17
Parameters
| Parameter | Type |
|---|---|
assetDirs | string[] |
assets | string[] |
name | string |
Returns
Promise<string>
getClient()
getClient(
context,config,type):Promise<any>
Defined in: packages/job-components/src/register-apis.ts:62
Parameters
| Parameter | Type |
|---|---|
context | Context |
config | GetClientConfig |
type | string |
Returns
Promise<any>
getOpConfig()
getOpConfig(
job,name):undefined|OpConfig
Defined in: packages/job-components/src/register-apis.ts:12
Get the first opConfig from an operation name
Parameters
| Parameter | Type |
|---|---|
job | ValidatedJobConfig |
name | string |
Returns
undefined | OpConfig
registerApis()
registerApis(
context,job,assetIds?):void
Defined in: packages/job-components/src/register-apis.ts:86
Parameters
| Parameter | Type |
|---|---|
context | Context |
job | ValidatedJobConfig | ExecutionConfig |
assetIds? | string[] |
Returns
void