Skip to main content

@terascope/job-components / register-apis

register-apis

Functions

getAssetPath()

getAssetPath(assetDirs, assets, name): Promise<string>

Parameters

ParameterType
assetDirsstring[]
assetsstring[]
namestring

Returns

Promise<string>

Source

packages/job-components/src/register-apis.ts:17


getClient()

getClient(context, config, type): Promise<any>

Parameters

ParameterType
contextContext
configGetClientConfig
typestring

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

ParameterType
jobValidatedJobConfig
namestring

Returns

OpConfig | undefined

Source

packages/job-components/src/register-apis.ts:12


registerApis()

registerApis(context, job, assetIds?): void

Parameters

ParameterType
contextContext
jobValidatedJobConfig | ExecutionConfig
assetIds?string[]

Returns

void

Source

packages/job-components/src/register-apis.ts:86