![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Readme_OSS agent generates list of licenses and copyrights found in an upload. More...


Public Member Functions | |
| processUploadId ($uploadId) | |
| Given an upload ID, process the items in it. More... | |
Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
| __construct ($agentName, $version, $revision) | |
| scheduler_connect () | |
| Connect with scheduler and initialize options. More... | |
| heartbeat ($newProcessed) | |
| Send hear beat to the scheduler. More... | |
| bail ($exitvalue) | |
| Bail the agent, print the stack and disconnect from scheduler. More... | |
| scheduler_disconnect ($exitvalue) | |
| Closes connection from scheduler. More... | |
| scheduler_greet () | |
| Greet the scheduler at the beginning of connection. More... | |
| initArsTable () | |
| Initialize ARS table. | |
| run_scheduler_event_loop () | |
| Runs a loop to read commands from scheduler and process them. More... | |
Public Attributes | |
| const | UPLOAD_ADDS = "uploadsAdd" |
| The HTTP GET parameter name. | |
Protected Attributes | |
| $additionalUploadIds = array() | |
Protected Attributes inherited from Fossology\Lib\Agent\Agent | |
| $userId | |
| $groupId | |
| $jobId | |
| $agentSpecifOptions = "" | |
| $agentSpecifLongOptions = array() | |
| $args = array() | |
| $dbManager | |
| $agentDao | |
| $container | |
| $schedulerMode | |
Private Member Functions | |
| writeReport ($contents, $uploadId) | |
| Write data to text file. More... | |
| updateReportTable ($uploadId, $jobId, $filename) | |
| Update the report path. More... | |
| createReadMeOSSFormat ($addSeparator, $dataForReadME, $extract='text', $break) | |
| This function lists elements of array. More... | |
| generateReport ($contents, $packageName) | |
| Gather all the data. More... | |
Private Attributes | |
| $licenseClearedGetter | |
| $cpClearedGetter | |
| $licenseMainGetter | |
| $uploadDao | |
Additional Inherited Members | |
Static Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
| static | heartbeat_handler ($signo) |
| Function to handle hear beats from the agent and send them to the scheduler from STDOUT. More... | |
Protected Member Functions inherited from Fossology\Lib\Agent\Agent | |
| processUploadId ($uploadId) | |
| Given an upload ID, process the items in it. More... | |
Readme_OSS agent generates list of licenses and copyrights found in an upload.
Definition at line 62 of file readmeoss.php.
|
private |
This function lists elements of array.
| string | $addSeparator | Separator to be used |
| string | $dataForReadME | Array of content |
| string | $extract | Data to be extracted from $dataForReadME |
| string | $break | Line break string |
Definition at line 197 of file readmeoss.php.
|
private |
Gather all the data.
| array | $contents | Array of contents with licenseMain, licenses and licenseAcknowledgements keys. |
| string | $packageName | Package for which the report is generated |
Definition at line 219 of file readmeoss.php.
| ReadmeOssAgent::processUploadId | ( | $uploadId | ) |
Given an upload ID, process the items in it.
This function is implemented by agent and should call heartbeat() at regular intervals.
| int | $uploadId | Upload to be processed by the agent. |
Definition at line 109 of file readmeoss.php.
|
private |
Update the report path.
| int | $uploadId | Upload ID |
| int | $jobId | Job ID |
| string | $filename | Path of the file |
Definition at line 184 of file readmeoss.php.
|
private |
Write data to text file.
| array | $contents | Contents of the report |
| int | $uploadId | ID of the upload |
Definition at line 154 of file readmeoss.php.
|
protected |
Additional Uploads to be included in report
Definition at line 89 of file readmeoss.php.
|
private |
XpClearedGetter object
Definition at line 74 of file readmeoss.php.
|
private |
LicenseClearedGetter object
Definition at line 69 of file readmeoss.php.
|
private |
LicenseMainGetter object
Definition at line 79 of file readmeoss.php.
|
private |
UploadDao object
Definition at line 84 of file readmeoss.php.