mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add <usage> to <secret> docs
* docs/formatsecret.html.in, docs/formatsecret.html: Document <usage type='volume'>, replacing stand-alone <volume>. * docs/schemas/secret.rng: Update schema to require <usage type='volume'>
This commit is contained in:
committed by
Daniel P. Berrange
parent
7887e00355
commit
78811ae572
@@ -152,17 +152,30 @@
|
|||||||
An unique identifier for this secret (not necessarily in the UUID
|
An unique identifier for this secret (not necessarily in the UUID
|
||||||
format). If omitted when defining a new secret, a random UUID is
|
format). If omitted when defining a new secret, a random UUID is
|
||||||
generated.
|
generated.
|
||||||
</dd><dt><code>volume</code></dt><dd>Key of a volume this secret is associated with. It is safe to delete
|
|
||||||
the secret after the volume is deleted.
|
|
||||||
</dd><dt><code>description</code></dt><dd>A human-readable description of the purpose of the secret.
|
</dd><dt><code>description</code></dt><dd>A human-readable description of the purpose of the secret.
|
||||||
|
</dd><dt><code>usage</code></dt><dd>
|
||||||
|
Specifies what this secret is used for. A mandatory
|
||||||
|
<code>type</code> attribute specifies the usage category, currently
|
||||||
|
only <code>volume</code> is defined. Specific usage categories are
|
||||||
|
described below.
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
<h3>Usage type "volume"</h3>
|
||||||
|
<p>
|
||||||
|
This secret is associated with a volume, and it is safe to delete the
|
||||||
|
secret after the volume is deleted. The <code><usage
|
||||||
|
type='volume'></code> element must contain a
|
||||||
|
single <code>volume</code> element that specifies the key of the volume
|
||||||
|
this secret is associated with.
|
||||||
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
<a name="example" id="example">Example</a>
|
<a name="example" id="example">Example</a>
|
||||||
</h2>
|
</h2>
|
||||||
<pre>
|
<pre>
|
||||||
<secret ephemeral='no' private='yes'>
|
<secret ephemeral='no' private='yes'>
|
||||||
<volume>/var/lib/libvirt/images/mail.img</volume>
|
|
||||||
<description>LUKS passphrase for the main hard drive of our mail server</description>
|
<description>LUKS passphrase for the main hard drive of our mail server</description>
|
||||||
|
<usage type='volume'>
|
||||||
|
<volume>/var/lib/libvirt/images/mail.img</volume>
|
||||||
|
</usage>
|
||||||
</secret></pre>
|
</secret></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -32,21 +32,36 @@
|
|||||||
format). If omitted when defining a new secret, a random UUID is
|
format). If omitted when defining a new secret, a random UUID is
|
||||||
generated.
|
generated.
|
||||||
</dd>
|
</dd>
|
||||||
<dt><code>volume</code></dt>
|
|
||||||
<dd>Key of a volume this secret is associated with. It is safe to delete
|
|
||||||
the secret after the volume is deleted.
|
|
||||||
</dd>
|
|
||||||
<dt><code>description</code></dt>
|
<dt><code>description</code></dt>
|
||||||
<dd>A human-readable description of the purpose of the secret.
|
<dd>A human-readable description of the purpose of the secret.
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><code>usage</code></dt>
|
||||||
|
<dd>
|
||||||
|
Specifies what this secret is used for. A mandatory
|
||||||
|
<code>type</code> attribute specifies the usage category, currently
|
||||||
|
only <code>volume</code> is defined. Specific usage categories are
|
||||||
|
described below.
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
<h3>Usage type "volume"</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This secret is associated with a volume, and it is safe to delete the
|
||||||
|
secret after the volume is deleted. The <code><usage
|
||||||
|
type='volume'></code> element must contain a
|
||||||
|
single <code>volume</code> element that specifies the key of the volume
|
||||||
|
this secret is associated with.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h2><a name="example">Example</a></h2>
|
<h2><a name="example">Example</a></h2>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<secret ephemeral='no' private='yes'>
|
<secret ephemeral='no' private='yes'>
|
||||||
<volume>/var/lib/libvirt/images/mail.img</volume>
|
|
||||||
<description>LUKS passphrase for the main hard drive of our mail server</description>
|
<description>LUKS passphrase for the main hard drive of our mail server</description>
|
||||||
|
<usage type='volume'>
|
||||||
|
<volume>/var/lib/libvirt/images/mail.img</volume>
|
||||||
|
</usage>
|
||||||
</secret></pre>
|
</secret></pre>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -34,11 +34,23 @@
|
|||||||
</element>
|
</element>
|
||||||
</optional>
|
</optional>
|
||||||
<optional>
|
<optional>
|
||||||
<element name='volume'>
|
<element name='usage'>
|
||||||
|
<choice>
|
||||||
|
<ref name='usagevolume'>
|
||||||
|
</choice>
|
||||||
<text/>
|
<text/>
|
||||||
</element>
|
</element>
|
||||||
</optional>
|
</optional>
|
||||||
</interleave>
|
</interleave>
|
||||||
</element>
|
</element>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
<define name='usagevolume'>
|
||||||
|
<attribute name='type'>
|
||||||
|
<value>volume</value>
|
||||||
|
</attribute>
|
||||||
|
<element name='volume'>
|
||||||
|
<text/>
|
||||||
|
</element>
|
||||||
|
</define>
|
||||||
</grammar>
|
</grammar>
|
||||||
|
|||||||
Reference in New Issue
Block a user