Sat, 15 Jun 2019 11:01:37 +0200
add new api for encrypted properties
266 | 1 | <?xml version="1.0"?> |
2 | <!-- | |
428
b50ade8e7197
adds documentation for tag config
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
427
diff
changeset
|
3 | Copyright 2018 Olaf Wintermann. All rights reserved. |
266 | 4 | |
5 | Redistribution and use in source and binary forms, with or without | |
6 | modification, are permitted provided that the following conditions are met: | |
7 | ||
8 | 1. Redistributions of source code must retain the above copyright | |
9 | notice, this list of conditions and the following disclaimer. | |
10 | ||
11 | 2. Redistributions in binary form must reproduce the above copyright | |
12 | notice, this list of conditions and the following disclaimer in the | |
13 | documentation and/or other materials provided with the distribution. | |
14 | ||
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
18 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | |
19 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
20 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
21 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
22 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
23 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
24 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
25 | POSSIBILITY OF SUCH DAMAGE. | |
26 | --> | |
27 | ||
28 | <xs:schema version="1.0" | |
29 | targetNamespace="http://davutils.org/cfg/dav-sync" | |
30 | xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
31 | xmlns:t="http://davutils.org/cfg/dav-sync" | |
32 | elementFormDefault="qualified" | |
33 | > | |
34 | ||
35 | <xs:complexType name="filenameFilter"> | |
36 | <xs:sequence> | |
37 | <xs:element name="include" type="xs:string" | |
38 | minOccurs="0" maxOccurs="unbounded" /> | |
39 | <xs:element name="exclude" type="xs:string" | |
40 | minOccurs="0" maxOccurs="unbounded" /> | |
427
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
41 | <xs:element name="tags" type="xs:string" |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
42 | minOccurs="0" maxOccurs="unbounded" /> |
266 | 43 | </xs:sequence> |
44 | </xs:complexType> | |
45 | ||
427
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
46 | <xs:simpleType name="tagStoreEnum" > |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
47 | <xs:restriction base="xs:string"> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
48 | <xs:enumeration value="csv" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
49 | <xs:enumeration value="text" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
50 | <xs:enumeration value="xml" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
51 | <xs:enumeration value="macos" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
52 | </xs:restriction> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
53 | </xs:simpleType> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
54 | |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
55 | <xs:simpleType name="tagOnConflictEnum" > |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
56 | <xs:restriction base="xs:string"> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
57 | <xs:enumeration value="no_conflict" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
58 | <xs:enumeration value="keep_local" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
59 | <xs:enumeration value="keep_remote" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
60 | <xs:enumeration value="merge" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
61 | </xs:restriction> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
62 | </xs:simpleType> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
63 | |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
64 | <xs:complexType name="tagConfig"> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
65 | <xs:all> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
66 | <xs:element name="local-store"> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
67 | <xs:complexType> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
68 | <xs:simpleContent> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
69 | <xs:extension base="t:tagStoreEnum"> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
70 | <xs:attribute name="format" type="xs:string" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
71 | </xs:extension> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
72 | </xs:simpleContent> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
73 | </xs:complexType> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
74 | </xs:element> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
75 | <xs:element name="detect-changes" minOccurs="0" type="xs:boolean" default="false" /> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
76 | <xs:element name="xattr-name" minOccurs="0" type="xs:string" /> |
428
b50ade8e7197
adds documentation for tag config
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
427
diff
changeset
|
77 | <xs:element name="on-conflict" minOccurs="0" type="t:tagOnConflictEnum" /> |
427
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
78 | </xs:all> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
79 | </xs:complexType> |
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
80 | |
266 | 81 | <xs:complexType name="direntry"> |
82 | <xs:all> | |
83 | <xs:element name="name" type="xs:string"/> | |
84 | <xs:element name="database" type="xs:string"/> | |
85 | <xs:element name="path" type="xs:string"/> | |
86 | <xs:element name="repository" type="xs:string"/> | |
87 | <xs:element name="collection" minOccurs="0" type="xs:string"/> | |
88 | <xs:element name="trash" minOccurs="0" type="xs:string"/> | |
89 | <xs:element name="filter" minOccurs="0" type="t:filenameFilter" /> | |
90 | <xs:element name="max-retry" default="0" | |
91 | minOccurs="0" type="xs:unsignedInt"/> | |
92 | <xs:element name="backup-on-pull" default="false" | |
93 | minOccurs="0" type="xs:boolean" /> | |
94 | <xs:element name="lock-pull" default="false" | |
95 | minOccurs="0" type="xs:boolean" /> | |
96 | <xs:element name="lock-push" default="false" | |
97 | minOccurs="0" type="xs:boolean" /> | |
317
7eea57f6d847
adds namespace config element
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
266
diff
changeset
|
98 | <xs:element name="lock-timeout" default="0" |
7eea57f6d847
adds namespace config element
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
266
diff
changeset
|
99 | minOccurs="0" type="xs:integer"/> |
427
0af8e6b6dfe0
adds tag config to sync.xsd
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
317
diff
changeset
|
100 | <xs:element name="tagconfig" minOccurs="0" type="t:tagConfig" /> |
266 | 101 | </xs:all> |
102 | </xs:complexType> | |
103 | ||
104 | <xs:element name="configuration"> | |
105 | <xs:complexType> | |
106 | <xs:sequence> | |
107 | <xs:element name="directory" type="t:direntry" | |
108 | minOccurs="0" maxOccurs="unbounded" /> | |
109 | </xs:sequence> | |
110 | </xs:complexType> | |
111 | </xs:element> | |
112 | </xs:schema> |