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