xml/schema/projects/vaultpass.xsd

56 lines
3.1 KiB
XML
Raw Normal View History

2020-03-27 09:03:43 -04:00
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema targetNamespace="https://git.square-r00t.net/VaultPass/"
xmlns="https://git.square-r00t.net/VaultPass/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="../lib/types/vaultpass.xsd"/>
2020-03-29 01:45:33 -04:00
<xs:include schemaLocation="../lib/elements/vaultpass.xsd"/>
2020-03-27 09:03:43 -04:00
<!-- ROOT -->
<xs:element name="vaultpass">
<xs:complexType>
2021-07-12 03:42:13 -04:00
<xs:sequence>
<xs:element name="server" minOccurs="1" maxOccurs="unbounded">
2020-03-29 01:45:33 -04:00
<xs:complexType>
<xs:all>
<xs:element name="uri" type="t_std_uri" minOccurs="0" maxOccurs="1"
2020-03-29 23:10:28 -04:00
default="http://localhost:8200/"/>
2021-07-06 13:56:34 -04:00
<!-- We don't use this anymore because groups don't play very nicely with a lot of libraries. Shame. -->
<!-- <xs:element ref="e_vaultpass_unsealselect" minOccurs="0" maxOccurs="1"/> -->
<xs:element name="unseal">
<xs:complexType>
2021-09-15 03:11:29 -04:00
<xs:choice minOccurs="1" maxOccurs="unbounded">
2021-07-06 13:56:34 -04:00
<xs:element name="unsealGpg" type="t_vaultpass_star_gpg"/>
<xs:element name="unsealPlain" type="t_std_base64"/>
</xs:choice>
</xs:complexType>
</xs:element>
<!-- We don't use this anymore because groups don't play very nicely with a lot of libraries. Shame. -->
<!-- <xs:element ref="e_vaultpass_authselect" minOccurs="1" maxOccurs="1"/> -->
<xs:element name="auth" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:choice minOccurs="1" maxOccurs="1">
<xs:element name="authGpg" type="t_vaultpass_star_gpg"/>
<xs:element name="authPlain" type="t_vaultpass_auth_plain"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="mounts" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="mount" minOccurs="1" maxOccurs="unbounded" type="t_vaultpass_mount"/>
</xs:sequence>
</xs:complexType>
</xs:element>
2020-03-29 01:45:33 -04:00
</xs:all>
2021-07-12 03:42:13 -04:00
<xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>
</xs:element>
2021-07-12 03:42:13 -04:00
</xs:sequence>
2020-03-27 09:03:43 -04:00
</xs:complexType>
</xs:element>
2020-03-29 01:45:33 -04:00
2020-03-27 09:03:43 -04:00
</xs:schema>