Code
The Code tab shows the program that runs the commands on your server. The block Command program carries the hint The open code of the program that runs commands on your server, with a checksum for each file. Click a file to read it. You read in the panel what runs on the server.
The table
The table lists the Python files of the command program. Until the program answers, the table says The file list appears once the server's command program answers.; a failed read shows the reason and the Thử lại button.
| Column | What it holds |
|---|---|
| File | The path of the file inside the program, for example hostexec/commands.py |
| SHA-256 | The SHA-256 checksum of the bytes of the file, with a button that copies the checksum |
The files of the program, by role:
| File | What it holds |
|---|---|
hostexec/commands.py | The commands, the check of their fields and conditions, the check pass |
hostexec/server.py | The protocol, the queue of changing commands and the jobs |
hostexec/collect.py | The scheduled collection of samples |
hostexec/journal.py | The parsing of the kernel and system logs into events |
hostexec/redact.py | The masking of the log lines that leave the server |
hostexec/host.py | The launch of the commands on the host, with limits of time and of output |
hostexec/units.py | The changing commands as units of the system that survive a restart |
hostexec/actions.py | The journal of calls that the program keeps on the server |
hostexec/unixsock.py | The occupation of the socket through which the panel talks to the program |
hostexec/__init__.py | The paths of the program |
The Xuất CSV button saves the list as a file named autodevops-code with the date of the day.
The file window
A click on a row opens the file window. Its title is the path of the file, its description is "SHA-256" and the checksum of the file, and under them stands the text of the file in a framed area that scrolls. The window reads a file up to 1 MB. The button Xong closes the window.
When the program refuses the file, the window shows a red notice with the reason: no such file in the program for a path outside the list, and the file is larger than 1 MB for a file above 1 MB.