Vridlo/types/Mirror: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
Line 3: Line 3:
* '''id''' is ''natural '''mandatory read-only internal'''''
* '''id''' is ''natural '''mandatory read-only internal'''''
  Unique identifier of mirror.
  Unique identifier of mirror.
* '''branch_path_slug''' is ''string '''mandatory'''''
* '''source_path_slug''' is ''string '''mandatory'''''
  Branch path slug, which the RPM belongs to.
  ''[[Vridlo/types/SourcePath|Source path]] slug, which the mirror belongs to.
* '''uri''' is ''string '''mandatory'''''
* '''uri''' is ''string '''mandatory'''''
  Full URI of the mirror for the specific RPM source path.  
  Full URI of the mirror for the specific RPM source path. Must conforms URI format.
* '''name''' is ''[[Vridlo/types/Name|Name]] array '''optional'''''
Name array for the group. It can include ''title'' value only.
* '''order_no''' is ''string '''optional read-only'''''
* '''order_no''' is ''string '''optional read-only'''''
  Sort order number, lower number is last in sorting.
  Sort order number, lower number is last in sorting.
Line 15: Line 13:
* '''protocol''' is ''string '''mandatory read-only'''''
* '''protocol''' is ''string '''mandatory read-only'''''
  Access protocol to the mirror, and is inferred from the '''uri'''. Can be of ''ftp'', ''http'', ''https''.
  Access protocol to the mirror, and is inferred from the '''uri'''. Can be of ''ftp'', ''http'', ''https''.
* '''names''' is ''[[Vridlo/types/Name|Name]] array '''optional'''''
Name array for the group. It can include ''title'' value only.

Revision as of 19:49, 11 December 2019

Mirror is a structure that represents Mirror model. Represents the mirror URI for the specific RPM source path. It is described as:

  • id is natural mandatory read-only internal
Unique identifier of mirror.
  • source_path_slug is string mandatory
Source path slug, which the mirror belongs to.
  • uri is string mandatory
Full URI of the mirror for the specific RPM source path. Must conforms URI format.
  • order_no is string optional read-only
Sort order number, lower number is last in sorting.
  • country is string optional
Country code for the host servers for the mirror.
  • protocol is string mandatory read-only
Access protocol to the mirror, and is inferred from the uri. Can be of ftp, http, https.
  • names is Name array optional
Name array for the group. It can include title value only.