Adding Jobs, Channels and Share Entities
This page is aimed at developers to test Nephos locally, please see NephosConfig for Redhen users.
The page provides details on how to add data (namely jobs, channels, and share entities) to Nephos. This can be done from the runtime CLI that Nephos comes with.
For batch operations to be performed, sample files are provided in the config
subdirectory of Nephos directory. These should be duplicated, mod
It must be kept in mind that Jobs can only be added for existing channels!
A single job can be added using the CLI in the following manner:
add job
- Provide appropriate input to the CLI prompts
- The log will notify of success/failure of the operation
NOTE: If you just want to add channels or share entities, remove the other part along with the mention of the key channels
/jobs
in the modified file.
A single channel can be added using the CLI in the following manner:
add channel
- Provide appropriate input to the CLI prompts
- The log will notify of success/failure of the operation
Nephos uses Regular Expressions to validate entries for channels, jobs and share entities. The patterns are listed below, any violation of the below patterns, prompts the user to enter the particular data field again.
- email: "[^@\s][\w\d._+][^\s]+@[\w\d.]+.[\w\d]"
- ip: "[^\s]+:[\d]+"
- country_code: "[a-zA-Z ]+"
- language: "[a-zA-Z ]+"
- timezone: "[a-zA-Z]"
- start_time: "\d{2}:\d{2}"
- duration: "\d+"
- repetition: "[01]{7}"
NOTE: You can execute these Reg-Ex patterns here and check if your entry qualifies.
Developed by thealphadollar under CCExtractor, GSoC 2018