![]() |
FOSSology
4.6.0-rc1
Open Source License Compliance by Open Source Software
|
fossdash configuration functions. More...
Go to the source code of this file.
Functions | |
| FossdashConfigInit ($sysconfdir, &$SysConf) | |
| Initialize the fossdash configuration after bootstrap(). More... | |
| Create_fossdashconfig () | |
| Create the fossdashconfig table. More... | |
| Populate_fossdashconfig () | |
| Populate the fossdashconfig table with core variables. | |
| check_fossdash_url ($url) | |
| Check if the fossdash url is valid. More... | |
| check_cron_job_inteval ($cron_interval) | |
| Check if the cron job schedule interval is valid. More... | |
| check_fossology_instance_name ($instance_name) | |
| Check if the fossology instance name is valid. More... | |
| check_fossdash_cleaning ($cleaning_days) | |
| Check if cleaning_days is valid or not. More... | |
| check_username ($uname) | |
| Check if given uname is valid or not. More... | |
| check_password ($password) | |
| Check if given password is valid or not. More... | |
| check_fossdash_config ($config_str) | |
| Check if given config string does not contains any DB update or drop related commands. More... | |
fossdash configuration functions.
Definition in file fossdash-config.php.
| check_cron_job_inteval | ( | $cron_interval | ) |
Check if the cron job schedule interval is valid.
| string | $cron_interval | cron job interval |
Definition at line 260 of file fossdash-config.php.
| check_fossdash_cleaning | ( | $cleaning_days | ) |
Check if cleaning_days is valid or not.
| string | $cleaning_days | Number of days after which successfully pushed metrics are cleaned up |
Definition at line 283 of file fossdash-config.php.
| check_fossdash_config | ( | $config_str | ) |
Check if given config string does not contains any DB update or drop related commands.
| string | $config_str | config for fossdash metrics |
Definition at line 316 of file fossdash-config.php.
| check_fossdash_url | ( | $url | ) |
Check if the fossdash url is valid.
| string | $url | The url which will be checked |
Definition at line 246 of file fossdash-config.php.
| check_fossology_instance_name | ( | $instance_name | ) |
Check if the fossology instance name is valid.
| string | $instance_name | fossology instance name |
Definition at line 272 of file fossdash-config.php.
| check_password | ( | $password | ) |
Check if given password is valid or not.
| string | $uname | password for influxDB |
Definition at line 305 of file fossdash-config.php.
| check_username | ( | $uname | ) |
Check if given uname is valid or not.
| string | $uname | username for influxDB |
Definition at line 294 of file fossdash-config.php.
| Create_fossdashconfig | ( | ) |
Create the fossdashconfig table.
Definition at line 71 of file fossdash-config.php.
| FossdashConfigInit | ( | $sysconfdir, | |
| & | $SysConf | ||
| ) |
Initialize the fossdash configuration after bootstrap().
This function also opens a database connection (global PG_CONN).
fossdash configuration variables are in below place:
| string | $sysconfdir | Path to SYSCONFDIR | |
| [out] | array | &$SysConf | Configuration variable array (updated by this function) |
If the fossdashconfig table doesn't exist then create it. Write records for the core variables into fossdashconfig table.
Definition at line 30 of file fossdash-config.php.