Vridlo/types/File: Difference between revisions

From ALT Linux Wiki
(Created page with "'''File''' structure description is: * '''id''' is ''string'' (Mandatory) Unique internal identifier of the file. * '''description''' is '''' (Mandatory) Description of th...")
 
No edit summary
Line 1: Line 1:
'''File''' structure description is:
'''File''' structure description is:


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


* '''description''' is '''' (Mandatory)
* '''description''' is '''' (''Mandatory'')
  Description of the file inferred from '''file''' utility v5.
  Description of the file inferred from '''file''' utility v5.


* '''mime_type''' is '''' (Mandatory)
* '''mime_type''' is '''' (''Mandatory'')
  MIME Type of the file inferred from '''file''' utility v5.
  MIME Type of the file inferred from '''file''' utility v5.


* '''mime_encoding''' is '''' (Mandatory)
* '''mime_encoding''' is '''' (''Mandatory'')
  MIME Encoding of the file inferred from '''file''' utility v5.
  MIME Encoding of the file inferred from '''file''' utility v5.


* '''sha''' is '''' (Mandatory)
* '''sha''' is '''' (''Mandatory'')
  SHA2 224 56-byted checksum over the file containment. Can be used as unique file index.
  SHA2 224 56-byted checksum over the file containment. Can be used as unique file index.


* '''file_sources_count''' is '''' (Mandatory)
* '''file_sources_count''' is '''' (''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)
* '''rpm_file_count''' is '''' (''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)
* '''all_rpm_file_count''' is '''' (''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.

Revision as of 14:07, 28 November 2019

File structure description is:

  • id is string (Mandatory, Read-only)
Unique internal identifier of the file.
  • description is ' (Mandatory)
Description of the file inferred from file utility v5.
  • mime_type is ' (Mandatory)
MIME Type of the file inferred from file utility v5.
  • mime_encoding is ' (Mandatory)
MIME Encoding of the file inferred from file utility v5.
  • sha is ' (Mandatory)
SHA2 224 56-byted checksum over the file containment. Can be used as unique file index.
  • file_sources_count is ' (Mandatory, Read-only)
Count of file sources which the file is used in.
  • rpm_file_count is ' (Mandatory, Read-only)
Count of actual RP files which the file is used in.
  • all_rpm_file_count is ' (Mandatory, Read-only)
Count of all RPM files which the file is used in.