Vridlo/types/File: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
Line 1: Line 1:
'''File''' structure description is:
'''File''' structure description is:


* '''id''' is ''string'' (''Mandatory, Read-only'')
* '''id''' is ''natural '''mandatory read-only'''''
  Unique internal identifier of the file.
  Unique internal identifier of the file.


* '''description''' is '''' (''Mandatory'')
* '''description''' is ''string '''mandatory'''''
  Description of the file inferred from '''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 '''' (''Mandatory'')
* '''mime_type''' is ''string '''mandatory'''''
  MIME Type of the file inferred from '''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 '''' (''Mandatory'')
* '''mime_encoding''' is ''string '''mandatory'''''
  MIME Encoding of the file inferred from '''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 '''' (''Mandatory'')
* '''sha''' is ''string[56] '''mandatory'''''
  SHA2 224 56-byted checksum over the file containment. Can be used as unique file index.
  [https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 56-byted checksum over the file containment. Can be used as unique file index.


* '''file_sources_count''' is '''' (''Mandatory, Read-only'')
* '''file_source_count''' is ''natural '''mandatory read-only'''''
  Count of file sources which the file is used in.
  Count of file sources which the file is used in.


* '''rpm_file_count''' is '''' (''Mandatory, Read-only'')
* '''rpm_file_count''' is ''natural '''mandatory read-only'''''
  Count of actual RP files which the file is used in.
  Count of actual RP files which the file is used in.


* '''all_rpm_file_count''' is '''' (''Mandatory, Read-only'')
* '''all_rpm_file_count''' is ''natural '''mandatory read-only'''''
  Count of all RPM files which the file is used in.
  Count of all RPM files which the file is used in. Shall be more or equal to '''rpm_file_count''' value.

Revision as of 14:20, 28 November 2019

File structure description is:

  • id is natural mandatory read-only
Unique internal identifier of the file.
  • description is string mandatory
Description of the file as a binary inferred from file utility v5.
  • mime_type is string mandatory
MIME Type of the file as a binary inferred from file utility v5.
  • mime_encoding is string mandatory
MIME Encoding of the file as a binary inferred from file utility v5.
  • sha is string[56] mandatory
SHA2 224 56-byted checksum over the file containment. Can be used as unique file index.
  • file_source_count is natural mandatory read-only
Count of file sources which the file is used in.
  • rpm_file_count is natural mandatory read-only
Count of actual RP files which the file is used in.
  • all_rpm_file_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.