@wholebuzz/mapreduce / Exports / plugins
- applyJobConfigToYargs
- deduplicateYargs
- factoryConstruct
- getObjectClassName
- getSubProperty
- getSubPropertyAccessor
- getSubPropertySetter
- getSubPropertyWithPath
- loadConfigurationCode
- loadPlugin
- loadPluginFile
- loadPluginFiles
- parseConfiguration
- setSubProperty
Ƭ ClassFactory<X>: () => X
Name |
---|
X |
+ (): X
Returns: X
Defined in: src/plugins.ts:11
Ƭ Factory<X>: ClassFactory<X> | ObjectFactory<X>
Name |
---|
X |
Defined in: src/plugins.ts:13
Ƭ ObjectFactory<X>: () => X
Name |
---|
X |
▸ (): X
Returns: X
Defined in: src/plugins.ts:12
• Const
requireFromString: any
Defined in: src/plugins.ts:9
▸ applyJobConfigToYargs(fileSystem
: FileSystem, args
: Record<string, any>): Promise<Record<string, any>>
Name | Type |
---|---|
fileSystem |
FileSystem |
args |
Record<string, any> |
Returns: Promise<Record<string, any>>
Defined in: src/plugins.ts:99
▸ deduplicateYargs(args
: Record<string, any>): Record<string, any>
Name | Type |
---|---|
args |
Record<string, any> |
Returns: Record<string, any>
Defined in: src/plugins.ts:118
▸ factoryConstruct<X>(factory
: Factory<X>): X
Name |
---|
X |
Name | Type |
---|---|
factory |
Factory<X> |
Returns: X
Defined in: src/plugins.ts:17
▸ Const
getObjectClassName(x
: any): any
Name | Type |
---|---|
x |
any |
Returns: any
Defined in: src/plugins.ts:15
▸ getSubProperty(x
: Record<string, any>, path?
: string[]): any
Name | Type |
---|---|
x |
Record<string, any> |
path? |
string[] |
Returns: any
Defined in: src/plugins.ts:139
▸ getSubPropertyAccessor(path
: string): function
Name | Type |
---|---|
path |
string |
Returns: (_
: Record<string, any>) => any
Defined in: src/plugins.ts:158
▸ getSubPropertySetter(path
: string): function
Name | Type |
---|---|
path |
string |
Returns: (_
: Record<string, any>, value
: any) => any
Defined in: src/plugins.ts:169
▸ getSubPropertyWithPath(x
: Record<string, any>, path?
: string): any
Name | Type |
---|---|
x |
Record<string, any> |
path? |
string |
Returns: any
Defined in: src/plugins.ts:135
▸ loadConfigurationCode(configuration
: Configuration, suffix?
: string): Configuration
Name | Type | Default value |
---|---|---|
configuration |
Configuration | - |
suffix |
string | 'Code' |
Returns: Configuration
Defined in: src/plugins.ts:64
▸ loadPlugin<X>(plugin
: Record<string, any>, url
: string, out?
: Record<string, Factory<X>>): Record<string, Factory<X>>
Name |
---|
X |
Name | Type | Default value |
---|---|---|
plugin |
Record<string, any> | - |
url |
string | - |
out |
Record<string, Factory<X>> | {} |
Returns: Record<string, Factory<X>>
Defined in: src/plugins.ts:50
▸ loadPluginFile<X>(fileSystem
: FileSystem, url
: string, out?
: Record<string, Factory<X>>): Promise<Record<string, Factory<X>>>
Name |
---|
X |
Name | Type | Default value |
---|---|---|
fileSystem |
FileSystem | - |
url |
string | - |
out |
Record<string, Factory<X>> | {} |
Returns: Promise<Record<string, Factory<X>>>
Defined in: src/plugins.ts:39
▸ loadPluginFiles<X>(fileSystem
: FileSystem, url
: string, out?
: Record<string, Factory<X>>): Promise<Record<string, Factory<X>>>
Name |
---|
X |
Name | Type | Default value |
---|---|---|
fileSystem |
FileSystem | - |
url |
string | - |
out |
Record<string, Factory<X>> | {} |
Returns: Promise<Record<string, Factory<X>>>
Defined in: src/plugins.ts:25
▸ parseConfiguration(input?
: string | string[]): Record<string, any>
Name | Type |
---|---|
input? |
string | string[] |
Returns: Record<string, any>
Defined in: src/plugins.ts:75
▸ setSubProperty(x
: Record<string, any>, path
: string[], value
: any): Record<string, any>
Name | Type |
---|---|
x |
Record<string, any> |
path |
string[] |
value |
any |
Returns: Record<string, any>
Defined in: src/plugins.ts:147