-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf.xsd
71 lines (71 loc) · 2.83 KB
/
conf.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="config" type="configType"/>
<xs:complexType name="authenticationType">
<xs:sequence>
<xs:element name="method" maxOccurs="unbounded" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="digest"/>
<xs:enumeration value="basic"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element type="xs:normalizedString" name="realm"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="generalType">
<xs:all>
<xs:element type="xs:token" name="logfile" minOccurs="0"/>
<xs:element type="xs:byte" name="loglevel" minOccurs="0"/>
<xs:element type="xs:boolean" name="dryrun" minOccurs="0"/>
<xs:element type="authenticationType" name="authentication" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="userType">
<xs:sequence>
<xs:element type="hostnameType" name="hostname" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:token" name="name" use="required"/>
<xs:attribute type="xs:token" name="password" use="optional"/>
</xs:complexType>
<xs:complexType name="usersType">
<xs:sequence>
<xs:element type="userType" name="user" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="tokenWithAttributes">
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:anyAttribute processContents="skip" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="zoneType">
<xs:sequence>
<xs:element type="tokenWithAttributes" name="updater" minOccurs="0" />
<xs:element type="xs:token" name="keyfile"/>
<xs:element type="xs:token" name="nameserver"/>
<xs:element type="xs:positiveInteger" name="ttl"/>
<xs:element type="xs:boolean" name="dryrun"/>
</xs:sequence>
<xs:attribute type="xs:token" name="name" use="required"/>
</xs:complexType>
<xs:complexType name="zonesType">
<xs:sequence>
<xs:element type="zoneType" name="zone" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="configType">
<xs:all>
<xs:element type="generalType" name="general" minOccurs="1"/>
<xs:element type="usersType" name="users" minOccurs="0"/>
<xs:element type="zonesType" name="zones" minOccurs="1"/>
</xs:all>
</xs:complexType>
<xs:simpleType name="hostnameType">
<xs:restriction base="xs:token">
<xs:pattern value="(\*\.){0,1}([A-Za-z0-9\-]+\.)*([A-Za-z0-9\-]+)" />
</xs:restriction>
</xs:simpleType>
</xs:schema>