Vridlo/types/File: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''File''' is | '''File''' is a '''''primary''''' structure that represents rpm file containment entity. That file can be of RPM itself, patch, source tarball, any file or folder inside the tarball, and it is described as: | ||
* ''' | * '''rpm_slug''' is ''natural '''optional write-once floating''''' | ||
Slug of the [[Vridlo/types/Rpm|RPM]], which the file belongs to, if any. Otherwise must be leave blank. | |||
* '''description''' is ''string '''mandatory | * '''description''' is ''string '''mandatory write-once''''' | ||
Description of the file as a binary inferred from '''[https://en.wikipedia.org/wiki/File_(command) file]''' utility v5. | Description of the file as a binary inferred from '''[https://en.wikipedia.org/wiki/File_(command) file]''' utility v5. | ||
* '''mime_type''' is ''string '''mandatory | * '''mime_type''' is ''string '''mandatory write-once''''' | ||
MIME Type of the file as a binary inferred from '''[https://en.wikipedia.org/wiki/File_(command) file]''' utility v5. | MIME Type of the file as a binary inferred from '''[https://en.wikipedia.org/wiki/File_(command) file]''' utility v5. | ||
* '''mime_encoding''' is ''string '''mandatory | * '''mime_encoding''' is ''string '''mandatory write-once''''' | ||
MIME Encoding of the file as a binary inferred from '''[https://en.wikipedia.org/wiki/File_(command) file]''' utility v5. | MIME Encoding of the file as a binary inferred from '''[https://en.wikipedia.org/wiki/File_(command) file]''' utility v5. | ||
* '''sha''' is ''string[56] '''mandatory | * '''sha''' is ''string[56] '''mandatory write-once''''' | ||
[https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 56-byted checksum over the file containment. | [https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 56-byted checksum over the file containment. Is used as unique file index. | ||
* '''file_sources_count''' is ''natural '''mandatory read-only''''' | * '''file_sources_count''' is ''natural '''mandatory read-only''''' | ||
Line 20: | Line 20: | ||
* '''rpm_files_count''' is ''natural '''mandatory read-only''''' | * '''rpm_files_count''' is ''natural '''mandatory read-only''''' | ||
Count of actual | Count of actual RPM files which the file is used in. | ||
* '''all_rpm_files_count''' is ''natural '''mandatory read-only''''' | * '''all_rpm_files_count''' is ''natural '''mandatory read-only''''' | ||
Count of all RPM files which the file is used in. Shall be more or equal to '''rpm_file_count''' value. | Count of all RPM files which the file is used in. Shall be more or equal to '''rpm_file_count''' value. |
Latest revision as of 16:01, 25 December 2019
File is a primary structure that represents rpm file containment entity. That file can be of RPM itself, patch, source tarball, any file or folder inside the tarball, and it is described as:
- rpm_slug is natural optional write-once floating
Slug of the RPM, which the file belongs to, if any. Otherwise must be leave blank.
- description is string mandatory write-once
Description of the file as a binary inferred from file utility v5.
- mime_type is string mandatory write-once
MIME Type of the file as a binary inferred from file utility v5.
- mime_encoding is string mandatory write-once
MIME Encoding of the file as a binary inferred from file utility v5.
- sha is string[56] mandatory write-once
SHA2 224 56-byted checksum over the file containment. Is used as unique file index.
- file_sources_count is natural mandatory read-only
Count of file sources which the file is used in.
- rpm_files_count is natural mandatory read-only
Count of actual RPM files which the file is used in.
- all_rpm_files_count is natural mandatory read-only
Count of all RPM files which the file is used in. Shall be more or equal to rpm_file_count value.