Skip to main content

teraslice-cli / helpers/tjm-util

helpers/tjm-util

Functions

addMetaData()

addMetaData(config, id, clusterUrl): void

Parameters

ParameterType
configRecord<string, any>
idstring
clusterUrlstring

Returns

void

Source

teraslice-cli/src/helpers/tjm-util.ts:188


convertOldTJMFiles()

convertOldTJMFiles(cliConfig): void

Parameters

ParameterType
cliConfigRecord<string, any>

Returns

void

Source

teraslice-cli/src/helpers/tjm-util.ts:148


getJobConfigFromFile()

getJobConfigFromFile(filePath, fileName): Record<string, any> | JobConfigFile

Parameters

ParameterType
filePathstring
fileNamestring

Returns

Record<string, any> | JobConfigFile

Source

teraslice-cli/src/helpers/tjm-util.ts:36


registerJobToCluster()

registerJobToCluster(cliConfig): Promise<default>

Parameters

ParameterType
cliConfigdefault

Returns

Promise<default>

Source

teraslice-cli/src/helpers/tjm-util.ts:108


resetConfigFile()

resetConfigFile(cliConfig): void

Parameters

ParameterType
cliConfigRecord<string, any>

Returns

void

Source

teraslice-cli/src/helpers/tjm-util.ts:174


saveConfig()

saveConfig(filePath, fileName, config): void

Parameters

ParameterType
filePathstring
fileNamestring
configRecord<string, any>

Returns

void

Source

teraslice-cli/src/helpers/tjm-util.ts:201


saveJobConfigToFile()

saveJobConfigToFile(jobConfig, filePath, clusterUrl): Promise<void>

Parameters

ParameterType
jobConfigJobConfig
filePathstring
clusterUrlstring

Returns

Promise<void>

Source

teraslice-cli/src/helpers/tjm-util.ts:215


updateJobConfig()

updateJobConfig(cliConfig): Promise<default>

Parameters

ParameterType
cliConfigdefault

Returns

Promise<default>

Source

teraslice-cli/src/helpers/tjm-util.ts:76


validateAndUpdateCliConfig()

validateAndUpdateCliConfig(cliConfig): void

Parameters

ParameterType
cliConfigdefault

Returns

void

Source

teraslice-cli/src/helpers/tjm-util.ts:53


validateJobFile()

validateJobFile(jobConfig): void

Functions to handle job config files

Parameters

ParameterType
jobConfigJobConfigFile

Returns

void

Source

teraslice-cli/src/helpers/tjm-util.ts:23