1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-21 22:34:21 +00:00
This commit is contained in:
Steffo99 2022-12-11 14:39:38 +00:00
parent 5d7a70535d
commit 5bf44b3e01

View file

@ -1109,13 +1109,13 @@
<dl class="py function"> <dl class="py function">
<dt class="sig sig-object py" id="sophon.notebooks.docker.get_health"> <dt class="sig sig-object py" id="sophon.notebooks.docker.get_health">
<span class="sig-name descname"><span class="pre">get_health</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">container</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v5.0)"><span class="pre">docker.models.containers.Container</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#sophon.notebooks.docker.HealthState" title="sophon.notebooks.docker.HealthState"><span class="pre">HealthState</span></a></span></span><a class="headerlink" href="#sophon.notebooks.docker.get_health" title="Link a questa definizione"></a></dt> <span class="sig-name descname"><span class="pre">get_health</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">container</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v6.0)"><span class="pre">docker.models.containers.Container</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#sophon.notebooks.docker.HealthState" title="sophon.notebooks.docker.HealthState"><span class="pre">HealthState</span></a></span></span><a class="headerlink" href="#sophon.notebooks.docker.get_health" title="Link a questa definizione"></a></dt>
<dd><p>Funzione che utilizza l'API a basso livello del client Docker per recuperare l'<a class="reference internal" href="#sophon.notebooks.docker.HealthState" title="sophon.notebooks.docker.HealthState"><code class="xref py py-obj docutils literal notranslate"><span class="pre">HealthState</span></code></a> dei container.</p> <dd><p>Funzione che utilizza l'API a basso livello del client Docker per recuperare l'<a class="reference internal" href="#sophon.notebooks.docker.HealthState" title="sophon.notebooks.docker.HealthState"><code class="xref py py-obj docutils literal notranslate"><span class="pre">HealthState</span></code></a> dei container.</p>
</dd></dl> </dd></dl>
<dl class="py function"> <dl class="py function">
<dt class="sig sig-object py" id="sophon.notebooks.docker.sleep_until_container_has_started"> <dt class="sig sig-object py" id="sophon.notebooks.docker.sleep_until_container_has_started">
<span class="sig-name descname"><span class="pre">sleep_until_container_has_started</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">container</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v5.0)"><span class="pre">docker.models.containers.Container</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#sophon.notebooks.docker.HealthState" title="sophon.notebooks.docker.HealthState"><span class="pre">HealthState</span></a></span></span><a class="headerlink" href="#sophon.notebooks.docker.sleep_until_container_has_started" title="Link a questa definizione"></a></dt> <span class="sig-name descname"><span class="pre">sleep_until_container_has_started</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">container</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v6.0)"><span class="pre">docker.models.containers.Container</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#sophon.notebooks.docker.HealthState" title="sophon.notebooks.docker.HealthState"><span class="pre">HealthState</span></a></span></span><a class="headerlink" href="#sophon.notebooks.docker.sleep_until_container_has_started" title="Link a questa definizione"></a></dt>
<dd><p>Funzione bloccante che restituisce solo quando lo stato del container specificato non è <code class="xref py py-obj docutils literal notranslate"><span class="pre">HealthState.STARTING</span></code>.</p> <dd><p>Funzione bloccante che restituisce solo quando lo stato del container specificato non è <code class="xref py py-obj docutils literal notranslate"><span class="pre">HealthState.STARTING</span></code>.</p>
<div class="admonition danger"> <div class="admonition danger">
<p class="admonition-title">Pericolo</p> <p class="admonition-title">Pericolo</p>
@ -1228,13 +1228,13 @@
<dl class="py method"> <dl class="py method">
<dt class="sig sig-object py" id="sophon.notebooks.models.Notebook.sync_container"> <dt class="sig sig-object py" id="sophon.notebooks.models.Notebook.sync_container">
<span class="sig-name descname"><span class="pre">sync_container</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">t.Optional</span><span class="p"><span class="pre">[</span></span><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v5.0)"><span class="pre">docker.models.containers.Container</span></a><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#sophon.notebooks.models.Notebook.sync_container" title="Link a questa definizione"></a></dt> <span class="sig-name descname"><span class="pre">sync_container</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">t.Optional</span><span class="p"><span class="pre">[</span></span><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v6.0)"><span class="pre">docker.models.containers.Container</span></a><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#sophon.notebooks.models.Notebook.sync_container" title="Link a questa definizione"></a></dt>
<dd><p>Sincronizza lo stato dell'oggetto nel database con lo stato del container <a class="reference internal" href="../progetto/index.html#docker"><span class="std std-ref">Docker</span></a> nel sistema.</p> <dd><p>Sincronizza lo stato dell'oggetto nel database con lo stato del container <a class="reference internal" href="../progetto/index.html#docker"><span class="std std-ref">Docker</span></a> nel sistema.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt class="sig sig-object py" id="sophon.notebooks.models.Notebook.create_container"> <dt class="sig sig-object py" id="sophon.notebooks.models.Notebook.create_container">
<span class="sig-name descname"><span class="pre">create_container</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v5.0)"><span class="pre">docker.models.containers.Container</span></a></span></span><a class="headerlink" href="#sophon.notebooks.models.Notebook.create_container" title="Link a questa definizione"></a></dt> <span class="sig-name descname"><span class="pre">create_container</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container" title="(in Docker SDK for Python v6.0)"><span class="pre">docker.models.containers.Container</span></a></span></span><a class="headerlink" href="#sophon.notebooks.models.Notebook.create_container" title="Link a questa definizione"></a></dt>
<dd><p>Crea e configura un container <a class="reference internal" href="../progetto/index.html#docker"><span class="std std-ref">Docker</span></a> per l'oggetto, con l'immagine specificata in <code class="xref py py-obj docutils literal notranslate"><span class="pre">container_image</span></code>.</p> <dd><p>Crea e configura un container <a class="reference internal" href="../progetto/index.html#docker"><span class="std std-ref">Docker</span></a> per l'oggetto, con l'immagine specificata in <code class="xref py py-obj docutils literal notranslate"><span class="pre">container_image</span></code>.</p>
</dd></dl> </dd></dl>