Current File : //proc/self/root/lib/python3/dist-packages/certbot/__pycache__/interfaces.cpython-312.pyc
�

M/�e�<����dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddlm
Z
ddlmZdd
lmZddlmZddlmZddlmZ	ddlmZerddlmZGd�de��ZGd�de��ZGd�de�Z Gd�de�Z!Gd�de��Z"Gd�de��Z#Gd �d!e��Z$Gd"�d#e�Z%Gd$�d%e�Z&Gd&�d'e&�Z'Gd(�d)e&�Z(y*#e$reZY��wxYw)+zCertbot client interfaces.�)�ABCMeta)�abstractmethod)�ArgumentParser)�Any)�Iterable)�List)�Optional)�Type)�
TYPE_CHECKING)�Union)�	Challenge)�ChallengeResponse)�ClientV2)�
configuration)�AnnotatedChallenge)�	Interface)�Accountc�d�eZdZdZededfd��Zededdfd��Zeddde	dd	fd
��Z
y	)�AccountStoragezAccounts storage interface.�returnrc��t��)zXFind all accounts.

        :returns: All found accounts.
        :rtype: list

        ��NotImplementedError��selfs �4/usr/lib/python3/dist-packages/certbot/interfaces.py�find_allzAccountStorage.find_alls
��"�#�#��
account_idc��t��)z�Load an account by its id.

        :raises .AccountNotFound: if account could not be found
        :raises .AccountStorageError: if account could not be loaded

        :returns: The account loaded
        :rtype: .Account

        r)rrs  r�loadzAccountStorage.load)s
��"�#�#r�account�clientNc��t��)z\Save account.

        :raises .AccountStorageError: if account could not be saved

        r)rr"r#s   r�savezAccountStorage.save6s
��"�#�#r)�__name__�
__module__�__qualname__�__doc__rrr�strr!rr%�rrrrsm��%��$�$�y�/�$��$��
$�s�
$�y�
$��
$��$�I�$�x�$�D�$��$rr)�	metaclassc����eZdZUdZeZeed<	eZeed<	e	de
ejdeddf�fd��Z
e	dd��Ze	defd	��Zee	d
ededdfd���Z�xZS)
�Plugina-Certbot plugin.

    Objects providing this interface will be called without satisfying
    any entry point "extras" (extra dependencies) you might have defined
    for your plugin, e.g (excerpt from ``setup.py`` script)::

      setup(
          ...
          entry_points={
              'certbot.plugins': [
                  'name=example_project.plugin[plugin_deps]',
              ],
          },
          extras_require={
              'plugin_deps': ['dep1', 'dep2'],
          }
      )

    Therefore, make sure such objects are importable and usable without
    extras. This is necessary, because CLI does the following operations
    (in order):

      - loads an entry point,
      - calls `inject_parser_options`,
      - requires an entry point,
      - creates plugin instance (`__call__`).

    �description�name�configrNc�"��t�|��y)z�Create a new `Plugin`.

        :param configuration.NamespaceConfig config: Configuration.
        :param str name: Unique plugin name.

        N)�super�__init__)rr1r0�	__class__s   �rr4zPlugin.__init__ds���	���rc��y)a�Prepare the plugin.

        Finish up any additional initialization.

        :raises .PluginError:
            when full initialization cannot be completed.
        :raises .MisconfigurationError:
            when full initialization cannot be completed. Plugin will
            be displayed on a list of available plugins.
        :raises .NoInstallationError:
            when the necessary programs/files cannot be located. Plugin
            will NOT be displayed on a list of available plugins.
        :raises .NotSupportedError:
            when the installation is recognized, but the version is not
            currently supported.

        Nr+rs r�preparezPlugin.preparen��rc��y)z�Human-readable string to help the user.

        Should describe the steps taken and any relevant info to help the user
        decide which plugin to use.

        :rtype str:

        Nr+rs r�	more_infozPlugin.more_info�r8r�parserc��y)a�Inject argument parser options (flags).

        1. Be nice and prepend all options and destinations with
        `~.common.option_namespace` and `~common.dest_namespace`.

        2. Inject options (flags) only. Positional arguments are not
        allowed, as this would break the CLI.

        :param ArgumentParser parser: (Almost) top-level CLI parser.
        :param str name: Unique plugin name.

        Nr+)�clsr;r0s   r�inject_parser_optionszPlugin.inject_parser_options�r8r�rN)r&r'r(r)�NotImplementedr/r*�__annotations__r0rr	r�NamespaceConfigr4r7r:�classmethodrr>�
__classcell__)r5s@rr.r.@s�����:&�K��%�"��D�#��#���x�
�(E�(E�F��c��VZ��������&��3�������>��������rr.c�|�eZdZdZededeeefd��Z	ede
ede
efd��Z
ede
eddfd��Zy)	�
Authenticatorz�Generic Certbot Authenticator.

    Class represents all possible tools processes that have the
    ability to perform challenges and attain a certificate.

    �domainrc��y)a�Return `collections.Iterable` of challenge preferences.

        :param str domain: Domain for which challenge preferences are sought.

        :returns: `collections.Iterable` of challenge types (subclasses of
            :class:`acme.challenges.Challenge`) with the most
            preferred challenges first. If a type is not specified, it means the
            Authenticator cannot perform the challenge.
        :rtype: `collections.Iterable`

        Nr+)rrGs  r�get_chall_prefzAuthenticator.get_chall_pref�r8r�achallsc��y)a�Perform the given challenge.

        :param list achalls: Non-empty (guaranteed) list of
            :class:`~certbot.achallenges.AnnotatedChallenge`
            instances, such that it contains types found within
            :func:`get_chall_pref` only.

        :returns: list of ACME
            :class:`~acme.challenges.ChallengeResponse` instances corresponding to each provided
            :class:`~acme.challenges.Challenge`.
        :rtype: :class:`collections.List` of
            :class:`acme.challenges.ChallengeResponse`,
            where responses are required to be returned in
            the same order as corresponding input challenges

        :raises .PluginError: If some or all challenges cannot be performed

        Nr+�rrJs  r�performzAuthenticator.perform�r8rNc��y)a�Revert changes and shutdown after challenges complete.

        This method should be able to revert all changes made by
        perform, even if perform exited abnormally.

        :param list achalls: Non-empty (guaranteed) list of
            :class:`~certbot.achallenges.AnnotatedChallenge`
            instances, a subset of those previously passed to :func:`perform`.

        :raises PluginError: if original configuration cannot be restored

        Nr+rLs  r�cleanupzAuthenticator.cleanup�r8r)r&r'r(r)rr*rr
r
rIrrrrMrOr+rrrFrF�s������S��X�d�9�o�-F������t�$6�7��D�AR�<S����(��t�$6�7��D���rrFc
�&�eZdZdZedeefd��Zededededededd	fd
��Ze	ddedede	e
eeefdd	fd
��Zedeefd��Z
edde	ededd	fd��Zeddedd	fd��Zedd��Zedd��Zedd��Zy	)�	Installera�Generic Certbot Installer Interface.

    Represents any server that an X509 certificate can be placed.

    It is assumed that :func:`save` is the only method that finalizes a
    checkpoint. This is important to ensure that checkpoints are
    restored in a consistent manner if requested by the user or in case
    of an error.

    Using :class:`certbot.reverter.Reverter` to implement checkpoints,
    rollback, and recovery can dramatically simplify plugin development.

    rc��y)zgReturns all names that may be authenticated.

        :rtype: `collections.Iterable` of `str`

        Nr+rs r�
get_all_nameszInstaller.get_all_names�r8rrG�	cert_path�key_path�
chain_path�fullchain_pathNc��y)a�Deploy certificate.

        :param str domain: domain to deploy certificate file
        :param str cert_path: absolute path to the certificate file
        :param str key_path: absolute path to the private key file
        :param str chain_path: absolute path to the certificate chain file
        :param str fullchain_path: absolute path to the certificate fullchain
            file (cert plus chain)

        :raises .PluginError: when cert cannot be deployed

        Nr+)rrGrTrUrVrWs      r�deploy_certzInstaller.deploy_cert�r8r�enhancement�optionsc��y)aGPerform a configuration enhancement.

        :param str domain: domain for which to provide enhancement
        :param str enhancement: An enhancement as defined in
            :const:`~certbot.plugins.enhancements.ENHANCEMENTS`
        :param options: Flexible options parameter for enhancement.
            Check documentation of
            :const:`~certbot.plugins.enhancements.ENHANCEMENTS`
            for expected options for each enhancement.

        :raises .PluginError: If Enhancement is not supported, or if
            an error occurs during the enhancement.

        Nr+)rrGrZr[s    r�enhancezInstaller.enhancer8rc��y)a	Returns a `collections.Iterable` of supported enhancements.

        :returns: supported enhancements which should be a subset of
            :const:`~certbot.plugins.enhancements.ENHANCEMENTS`
        :rtype: :class:`collections.Iterable` of :class:`str`

        Nr+rs r�supported_enhancementsz Installer.supported_enhancementsr8r�title�	temporaryc��y)a1Saves all changes to the configuration files.

        Both title and temporary are needed because a save may be
        intended to be permanent, but the save is not ready to be a full
        checkpoint.

        It is assumed that at most one checkpoint is finalized by this
        method. Additionally, if an exception is raised, it is assumed a
        new checkpoint was not finalized.

        :param str title: The title of the save. If a title is given, the
            configuration will be saved as a new checkpoint and put in a
            timestamped directory. `title` has no effect if temporary is true.

        :param bool temporary: Indicates whether the changes made will
            be quickly reversed in the future (challenges)

        :raises .PluginError: when save is unsuccessful

        Nr+)rr`ras   rr%zInstaller.saver8r�rollbackc��y)z�Revert `rollback` number of configuration checkpoints.

        :raises .PluginError: when configuration cannot be fully reverted

        Nr+)rrcs  r�rollback_checkpointszInstaller.rollback_checkpoints3r8rc��y)aARevert configuration to most recent finalized checkpoint.

        Remove all changes (temporary and permanent) that have not been
        finalized. This is useful to protect against crashes and other
        execution interruptions.

        :raises .errors.PluginError: If unable to recover the configuration

        Nr+rs r�recovery_routinezInstaller.recovery_routine;r8rc��y)z�Make sure the configuration is valid.

        :raises .MisconfigurationError: when the config is not in a usable state

        Nr+rs r�config_testzInstaller.config_testGr8rc��y)zoRestart or refresh the server content.

        :raises .PluginError: when server cannot be restarted

        Nr+rs r�restartzInstaller.restartOr8r)N)NF)�r?)r&r'r(r)rrr*rSrYr	rrr]r_�boolr%�intrergrirkr+rrrQrQ�sX�����x��}�����
�#�
�#�
��
� #�
�58�
�=A�
��
��;?��c����!�%��S�	�3��"7�8��DH����"���S�	������(�3�-��4��D����,��S�������	��	��������rrQc���eZdZdZeedefd���Zeedefd���Zeedefd���Z	eedefd���Z
eedefd���Zedeefd��Z
y	)
�
RenewableCertz#Interface to a certificate lineage.rc��y)z<Path to the certificate file.

        :rtype: str

        Nr+rs rrTzRenewableCert.cert_path[r8rc��y)z<Path to the private key file.

        :rtype: str

        Nr+rs rrUzRenewableCert.key_pathdr8rc��y)zBPath to the certificate chain file.

        :rtype: str

        Nr+rs rrVzRenewableCert.chain_pathmr8rc��y)z�Path to the full chain file.

        The full chain is the certificate file plus the chain file.

        :rtype: str

        Nr+rs rrWzRenewableCert.fullchain_pathvr8rc��y)zEName given to the certificate lineage.

        :rtype: str

        Nr+rs r�lineagenamezRenewableCert.lineagename�r8rc��y)z�What are the subject names of this certificate?

        :returns: the subject names
        :rtype: `list` of `str`
        :raises .CertStorageError: if could not find cert file.

        Nr+rs r�nameszRenewableCert.names�r8rN)r&r'r(r)�propertyrr*rTrUrVrWrvrrxr+rrrprpXs���-�
���3��������#��������C����������������S�������t�C�y���rrpc	�2�eZdZdZededededdfd��Zy)�GenericUpdateraIInterface for update types not currently specified by Certbot.

    This class allows plugins to perform types of updates that Certbot hasn't
    defined (yet).

    To make use of this interface, the installer should implement the interface
    methods, and interfaces.GenericUpdater.register(InstallerClass) should
    be called from the installer code.

    The plugins implementing this enhancement are responsible of handling
    the saving of configuration checkpoints as well as other calls to
    interface methods of `interfaces.Installer` such as prepare() and restart()
    �lineage�args�kwargsrNc��y)a�Perform any update types defined by the installer.

        If an installer is a subclass of the class containing this method, this
        function will always be called when "certbot renew" is run. If the
        update defined by the installer should be run conditionally, the
        installer needs to handle checking the conditions itself.

        This method is called once for each lineage.

        :param lineage: Certificate lineage object
        :type lineage: RenewableCert

        Nr+�rr|r}r~s    r�generic_updateszGenericUpdater.generic_updates�r8r)r&r'r(r)rrprr�r+rrr{r{�s8����
�}�
�S�
�C�
�TX�
��
rr{c	�2�eZdZdZededededdfd��Zy)�
RenewDeployera�Interface for update types run when a lineage is renewed

    This class allows plugins to perform types of updates that need to run at
    lineage renewal that Certbot hasn't defined (yet).

    To make use of this interface, the installer should implement the interface
    methods, and interfaces.RenewDeployer.register(InstallerClass) should
    be called from the installer code.
    r|r}r~rNc��y)a Perform updates defined by installer when a certificate has been renewed

        If an installer is a subclass of the class containing this method, this
        function will always be called when a certificate has been renewed by
        running "certbot renew". For example if a plugin needs to copy a
        certificate over, or change configuration based on the new certificate.

        This method is called once for each lineage renewed

        :param lineage: Certificate lineage object
        :type lineage: RenewableCert

        Nr+r�s    r�renew_deployzRenewDeployer.renew_deploy�r8r)r&r'r(r)rrprr�r+rrr�r��s8����
�M�
�#�
��
�QU�
��
rr�c��eZdZdZy)�IPluginFactory�SCompatibility shim for plugins that still use Certbot's old zope.interface classes.N�r&r'r(r)r+rrr�r�����]rr�c��eZdZdZy)�IPluginr�Nr�r+rrr�r��r�rr�c��eZdZdZy)�IAuthenticatorr�Nr�r+rrr�r��r�rr�c��eZdZdZy)�
IInstallerr�Nr�r+rrr�r��r�rr�N))r)�abcrr�argparser�typingrrrr	r
rr�acme.challengesr
r�acme.clientr�certbotr�certbot.achallengesr�zope.interfacer�
ZopeInterface�ImportError�object�certbot._internal.accountrrr.rFrQrpr{r�r�r�r�r�r+rr�<module>r�s��� ���#������ ��%�-� �!�2��9��1�!$�w�!$�H[�w�[�|8�F�8�v|��|�~:�g�:�N�w��@�g��8^�]�^�^�m�^�^�W�^�^��^��_���M��s�C+�+C5�4C5
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!