eric7/Documentation/Source/eric7.CycloneDXInterface.CycloneDXUtilities.html

Sat, 04 Jun 2022 16:58:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 04 Jun 2022 16:58:05 +0200
branch
eric7
changeset 9123
aefb731a4b4e
parent 9117
c6afba2049cf
child 9141
7085ece52151
permissions
-rw-r--r--

Updated source documentation.

<!DOCTYPE html>
<html><head>
<title>eric7.CycloneDXInterface.CycloneDXUtilities</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.CycloneDXInterface.CycloneDXUtilities</h1>

<p>
Module implementing the interface to CycloneDX.
</p>
<h3>Global Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>

<table>

<tr>
<td><a href="#CycloneDXEnvironmentParser">CycloneDXEnvironmentParser</a></td>
<td>Class implementing a parser to get package data for a named environment.</td>
</tr>
</table>
<h3>Functions</h3>

<table>

<tr>
<td><a href="#_addCycloneDXDependency">_addCycloneDXDependency</a></td>
<td>Function to add a dependency to the given list of components.</td>
</tr>
<tr>
<td><a href="#addCycloneDXDependencies">addCycloneDXDependencies</a></td>
<td>Function to add dependency data to the list of created components.</td>
</tr>
<tr>
<td><a href="#addCycloneDXVulnerabilities">addCycloneDXVulnerabilities</a></td>
<td>Function to add vulnerability data to the list of created components.</td>
</tr>
<tr>
<td><a href="#createCycloneDXFile">createCycloneDXFile</a></td>
<td>Function to create a CyccloneDX SBOM file.</td>
</tr>
<tr>
<td><a href="#findCyccloneDXComponent">findCyccloneDXComponent</a></td>
<td>Function to find a component in a given list of components.</td>
</tr>
</table>
<hr />
<hr />
<a NAME="CycloneDXEnvironmentParser" ID="CycloneDXEnvironmentParser"></a>
<h2>CycloneDXEnvironmentParser</h2>

<p>
    Class implementing a parser to get package data for a named environment.
</p>
<h3>Derived from</h3>
BaseParser
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#CycloneDXEnvironmentParser.__init__">CycloneDXEnvironmentParser</a></td>
<td>Constructor</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="CycloneDXEnvironmentParser.__init__" ID="CycloneDXEnvironmentParser.__init__"></a>
<h4>CycloneDXEnvironmentParser (Constructor)</h4>
<b>CycloneDXEnvironmentParser</b>(<i>venvName</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>venvName</i> (str)</dt>
<dd>
name of the virtual environment
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="_addCycloneDXDependency" ID="_addCycloneDXDependency"></a>
<h2>_addCycloneDXDependency</h2>
<b>_addCycloneDXDependency</b>(<i>dependency, components</i>)

<p>
    Function to add a dependency to the given list of components.
</p>
<dl>

<dt><i>dependency</i> (dict)</dt>
<dd>
dependency to be added
</dd>
<dt><i>components</i> (list of Component)</dt>
<dd>
list of components
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="addCycloneDXDependencies" ID="addCycloneDXDependencies"></a>
<h2>addCycloneDXDependencies</h2>
<b>addCycloneDXDependencies</b>(<i>parser, venvName</i>)

<p>
    Function to add dependency data to the list of created components.
</p>
<dl>

<dt><i>parser</i> (BaseParser)</dt>
<dd>
reference to the parser object containing the list of
        components
</dd>
<dt><i>venvName</i> (str)</dt>
<dd>
name of the virtual environment
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="addCycloneDXVulnerabilities" ID="addCycloneDXVulnerabilities"></a>
<h2>addCycloneDXVulnerabilities</h2>
<b>addCycloneDXVulnerabilities</b>(<i>parser</i>)

<p>
    Function to add vulnerability data to the list of created components.
</p>
<dl>

<dt><i>parser</i> (BaseParser)</dt>
<dd>
reference to the parser object containing the list of
        components
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="createCycloneDXFile" ID="createCycloneDXFile"></a>
<h2>createCycloneDXFile</h2>
<b>createCycloneDXFile</b>(<i>venvName</i>)

<p>
    Function to create a CyccloneDX SBOM file.
</p>
<dl>

<dt><i>venvName</i> (str)</dt>
<dd>
name of the virtual environment
</dd>
</dl>
<dl>

<dt>Raises <b>RuntimeError</b>:</dt>
<dd>
raised to indicate illegal creation parameters
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="findCyccloneDXComponent" ID="findCyccloneDXComponent"></a>
<h2>findCyccloneDXComponent</h2>
<b>findCyccloneDXComponent</b>(<i>components, name</i>)

<p>
    Function to find a component in a given list of components.
</p>
<dl>

<dt><i>components</i> (list of Component)</dt>
<dd>
list of components to scan
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of the component to search for
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the found component or None
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Component or None
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial