xml/schema/lib/elements/repomirror.xsd

50 lines
1.9 KiB
XML
Raw Normal View History

2020-06-13 03:46:57 -04:00
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="../types/repomirror.xsd"/>
<xs:include schemaLocation="../types/net.xsd"/>
<xs:include schemaLocation="../types/unix.xsd"/>
2020-06-14 00:53:19 -04:00
<xs:complexType name="e_repomir_owner">
<xs:sequence minOccurs="1">
<xs:choice minOccurs="1" maxOccurs="2">
<xs:element name="user" type="t_unix_posixUserGroup" maxOccurs="1"/>
<xs:element name="group" type="t_unix_posixUserGroup" maxOccurs="1"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
2020-06-13 03:46:57 -04:00
<!-- Commented out; we don't bother with SSH variants. See also e_repomir_upstream -->
<!--
<xs:complexType name="e_repomir_sync_proto">
<xs:simpleContent>
<xs:extension base="t_repomir_synctype">
<xs:attribute name="ssh" use="optional" default="false" type="xs:boolean"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
-->
2020-06-14 00:53:19 -04:00
<xs:complexType name="e_repomir_tstmp_file">
<xs:simpleContent>
<xs:extension base="t_unix_filepath">
<xs:attribute name="timeFormat" type="xs:string" use="optional" default="UNIX_EPOCH"/>
2020-06-14 00:53:19 -04:00
</xs:extension>
</xs:simpleContent>
</xs:complexType>
2020-06-13 03:46:57 -04:00
<xs:complexType name="e_repomir_upstream">
<xs:all minOccurs="1">
2020-06-14 00:53:19 -04:00
<!-- <xs:element name="syncType" type="e_repomir_sync_proto" minOccurs="1"/> -->
2020-06-13 03:46:57 -04:00
<xs:element name="syncType" type="t_repomir_synctype" minOccurs="1"/>
<xs:element name="domain" type="xs:token" minOccurs="1"/>
<xs:element name="port" minOccurs="0" type="t_net_port"/>
2020-06-19 02:43:38 -04:00
<xs:element name="path" minOccurs="1" type="t_unix_dirpath"/>
2020-06-13 03:46:57 -04:00
</xs:all>
2020-07-23 11:17:57 -04:00
<xs:attribute name="delayCheck" type="xs:duration" use="optional" default="P0Y0M0W2DT0H0M0S"/>
2020-06-13 03:46:57 -04:00
</xs:complexType>
</xs:schema>