atomshields package¶
Submodules¶
atomshields.helpers module¶
-
class
atomshields.helpers.CommandHelper(command=None)[source]¶ Bases:
objectClass used to execute commands in shell, an d get the output and the errors.
-
OS_UBUNTU= 'Ubuntu'¶
-
OS_DEBIAN= 'Debian'¶
-
OS_CENTOS= 'CentOS'¶
-
OS_REDHAT= 'Redhat'¶
-
OS_KALI= 'Kali'¶
-
OS_LINUX= 'Linux'¶
-
OS_MAC= 'Darwin'¶
-
OS_WINDOWS= 'Windows'¶
-
command¶ Getter for ‘command’ property
Returns: Command to execute Return type: str
-
output¶ Getter for ‘output’ property
Returns: Stdout content Return type: str
-
errors¶ Getter for ‘errors’ property
Returns: Stderr content Return type: str
-
atomshields.scanner module¶
-
class
atomshields.scanner.AtomShieldsScanner(path, verbose=False)[source]¶ Bases:
objectClass in charge of orchestrating the execution of the cherckers and the results.
-
HOME= '/usr/local/share/atomshields'¶
-
HOME_2= '/home/docs/.atomshields'¶
-
CHECKERS_DIR= '/home/docs/.atomshields/checkers'¶
-
REPORTS_DIR= '/home/docs/.atomshields/reports'¶
-
CONFIG_PATH= '/home/docs/.atomshields/config'¶
-
path¶ Getter for ‘path’ property
Returns: Absolute path to target directory Return type: string
-
project¶ Getter for ‘project’ property
Returns: Projects’s name Return type: string
-
configFile¶ Getter for ‘configFile’ property
Returns: Path to config file Return type: str
-
config¶ Getter for ‘config’ property
Returns: Path to config file Return type: str
-
issues¶ Getter for ‘issues’ property
Returns: List of Issue instances Return type: list
-
Module contents¶
-
class
atomshields.AtomShieldsScanner(path, verbose=False)[source]¶ Bases:
objectClass in charge of orchestrating the execution of the cherckers and the results.
-
HOME= '/usr/local/share/atomshields'¶
-
HOME_2= '/home/docs/.atomshields'¶
-
CHECKERS_DIR= '/home/docs/.atomshields/checkers'¶
-
REPORTS_DIR= '/home/docs/.atomshields/reports'¶
-
CONFIG_PATH= '/home/docs/.atomshields/config'¶
-
path¶ Getter for ‘path’ property
Returns: Absolute path to target directory Return type: string
-
project¶ Getter for ‘project’ property
Returns: Projects’s name Return type: string
-
configFile¶ Getter for ‘configFile’ property
Returns: Path to config file Return type: str
-
config¶ Getter for ‘config’ property
Returns: Path to config file Return type: str
-
issues¶ Getter for ‘issues’ property
Returns: List of Issue instances Return type: list
-
-
class
atomshields.CommandHelper(command=None)[source]¶ Bases:
objectClass used to execute commands in shell, an d get the output and the errors.
-
OS_UBUNTU= 'Ubuntu'¶
-
OS_DEBIAN= 'Debian'¶
-
OS_CENTOS= 'CentOS'¶
-
OS_REDHAT= 'Redhat'¶
-
OS_KALI= 'Kali'¶
-
OS_LINUX= 'Linux'¶
-
OS_MAC= 'Darwin'¶
-
OS_WINDOWS= 'Windows'¶
-
command¶ Getter for ‘command’ property
Returns: Command to execute Return type: str
-
output¶ Getter for ‘output’ property
Returns: Stdout content Return type: str
-
errors¶ Getter for ‘errors’ property
Returns: Stderr content Return type: str
-