File: metadata.rng

package info (click to toggle)
resource-agents 1%3A4.0.0~rc1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,644 kB
  • ctags: 2,191
  • sloc: sh: 47,713; ansic: 4,074; perl: 3,457; makefile: 663; xml: 89
file content (91 lines) | stat: -rw-r--r-- 2,100 bytes parent folder | download | duplicates (5)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<grammar xmlns="http://relaxng.org/ns/structure/1.0">

<start><element name="resource-agent">
	<attribute name="name" />
	<element name="version"> <text /> </element>
	<element name="longdesc"> <attribute name="lang" /> <text /> </element>
	<element name="shortdesc"> <attribute name="lang" /> <text /> </element>

	<element name="parameters"> <oneOrMore>
		<element name="parameter">
			<attribute name="name" />
			<optional>
			<attribute name="unique"> <ref name="boolean-values" /> </attribute>
			</optional>
			<optional>
				<attribute name="required"> <ref name="boolean-values" /> </attribute>
			</optional>

			<element name="longdesc">
				<attribute name="lang" />
				<text />
			</element>

			<element name="shortdesc">
				<attribute name="lang" />
				<text />
			</element>

			<element name="content">
				<choice>
					<attribute name="type">
						<choice>
							<value>boolean</value>
							<value>string</value>
							<value>second</value>
							<value>integer</value>
						</choice>
					</attribute>
					<group>
						<attribute name="type">
							<value>select</value>
						</attribute>
						<zeroOrMore>
							<element name="option">
								<attribute name="value" />
							</element>
						</zeroOrMore>
					</group>
				</choice>
				<optional>
					<attribute name="default"> <text /> </attribute>
				</optional>
			</element>
		</element>
	</oneOrMore> </element>

	<element name="actions"> <oneOrMore>
		<element name="action">
			<attribute name="name" />
			<optional>
				<attribute name="depth" />
			</optional>
			<attribute name="timeout" />
			<optional>
				<attribute name="interval" />
			</optional>
			<optional>
				<attribute name="start-delay" />
			</optional>
			<optional>
				<attribute name="role"> <ref name="role-values" /> </attribute>
			</optional>
		</element>
	</oneOrMore> </element>
</element></start>

<define name="boolean-values">
	<choice>
		<value>0</value>
		<value>1</value>
	</choice>
</define>

<define name="role-values">
	<choice>
		<value>Master</value>
		<value>Slave</value>
	</choice>
</define>

</grammar>