Przejdź do głównej zawartości

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 Ponów button.

ColumnWhat it holds
FileThe path of the file inside the program, for example hostexec/commands.py
SHA-256The SHA-256 checksum of the bytes of the file, with a button that copies the checksum

The files of the program, by role:

FileWhat it holds
hostexec/commands.pyThe commands, the check of their fields and conditions, the check pass
hostexec/server.pyThe protocol, the queue of changing commands and the jobs
hostexec/collect.pyThe scheduled collection of samples
hostexec/journal.pyThe parsing of the kernel and system logs into events
hostexec/redact.pyThe masking of the log lines that leave the server
hostexec/host.pyThe launch of the commands on the host, with limits of time and of output
hostexec/units.pyThe changing commands as units of the system that survive a restart
hostexec/actions.pyThe journal of calls that the program keeps on the server
hostexec/unixsock.pyThe occupation of the socket through which the panel talks to the program
hostexec/__init__.pyThe paths of the program

The Eksportuj 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 Gotowe 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.

What's next​