Skip to main content

@terascope/job-components / operation-loader/loader / OperationLoader

Class: OperationLoader

Defined in: packages/job-components/src/operation-loader/loader.ts:23

Constructors

new OperationLoader()

new OperationLoader(options): OperationLoader

Defined in: packages/job-components/src/operation-loader/loader.ts:30

Parameters

ParameterType
optionsLoaderOptions

Returns

OperationLoader

Properties

PropertyTypeDefined in
allowedFile(name: string) => booleanpackages/job-components/src/operation-loader/loader.ts:28

Methods

find()

find(name, assetIds): Promise<FindOperationResults[]>

Defined in: packages/job-components/src/operation-loader/loader.ts:348

Parameters

ParameterTypeDefault value
namestringundefined
assetIdsstring[][]

Returns

Promise<FindOperationResults[]>


loadAPI()

loadAPI(name, assetIds?): Promise<APIModule>

Defined in: packages/job-components/src/operation-loader/loader.ts:192

Parameters

ParameterType
namestring
assetIds?string[]

Returns

Promise<APIModule>


loadProcessor()

loadProcessor(name, assetIds?): Promise<ProcessorModule>

Defined in: packages/job-components/src/operation-loader/loader.ts:43

Parameters

ParameterType
namestring
assetIds?string[]

Returns

Promise<ProcessorModule>


loadReader()

loadReader(name, assetIds?): Promise<ReaderModule>

Defined in: packages/job-components/src/operation-loader/loader.ts:111

Parameters

ParameterType
namestring
assetIds?string[]

Returns

Promise<ReaderModule>