mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-30 17:45:23 +00:00
7e02076624
The types used in domaincommon.rng and secret.rng should be the same. Move genericName to basictypes.rng, then drop redundant types now that secret.rng uses basictypes.rng. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com> Signed-off-by: Eric Blake <eblake@redhat.com>
71 lines
1.6 KiB
XML
71 lines
1.6 KiB
XML
<?xml version="1.0"?>
|
|
<!-- A Relax NG schema for the libvirt secret properties XML format -->
|
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
|
<start>
|
|
<ref name='secret'/>
|
|
</start>
|
|
|
|
<include href='basictypes.rng'/>
|
|
|
|
<define name='secret'>
|
|
<element name='secret'>
|
|
<optional>
|
|
<attribute name='ephemeral'>
|
|
<choice>
|
|
<value>yes</value>
|
|
<value>no</value>
|
|
</choice>
|
|
</attribute>
|
|
</optional>
|
|
<optional>
|
|
<attribute name='private'>
|
|
<choice>
|
|
<value>yes</value>
|
|
<value>no</value>
|
|
</choice>
|
|
</attribute>
|
|
</optional>
|
|
<interleave>
|
|
<optional>
|
|
<element name='uuid'>
|
|
<ref name='UUID'/>
|
|
</element>
|
|
</optional>
|
|
<optional>
|
|
<element name='description'>
|
|
<text/>
|
|
</element>
|
|
</optional>
|
|
<optional>
|
|
<element name='usage'>
|
|
<choice>
|
|
<ref name='usagevolume'/>
|
|
<ref name='usageceph'/>
|
|
<!-- More choices later -->
|
|
</choice>
|
|
</element>
|
|
</optional>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='usagevolume'>
|
|
<attribute name='type'>
|
|
<value>volume</value>
|
|
</attribute>
|
|
<element name='volume'>
|
|
<ref name='absFilePath'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='usageceph'>
|
|
<attribute name='type'>
|
|
<value>ceph</value>
|
|
</attribute>
|
|
<element name='name'>
|
|
<ref name='genericName'/>
|
|
</element>
|
|
</define>
|
|
|
|
</grammar>
|