File: //lib/python3/dist-packages/sos/cleaner/mappings/__pycache__/hostname_map.cpython-312.pyc
�
    -�_g(  �                   �.   � d dl Z d dlmZ  G d� de�      Zy)�    N)�SoSMapc                   �   � � e Zd ZdZg d�ZddgZdZdZdZdZ	dZ
i Zi Zd� Z
� fd	�Zd
� Zd� Z� fd�Zd
� Zd� Zd� Zd� Z� xZS )�SoSHostnameMapaL  Mapping store for hostnames and domain names
    Hostnames are obfuscated using an incrementing counter based on the total
    number of hosts matched regardless of domain name.
    Domain names are obfuscated based on the host's hostname, plus any user
    defined domains passed in by the `--domains` options.
    Domains are obfuscated as whole units, meaning the domains 'example.com'
    and 'host.foo.example.com' will be separately obfuscated with no relation
    for example as 'obfuscatedomdain1.com' and 'obfuscatedomain2.com'.
    Top-level domains are left untouched.
    )�	localhostz.*localdomain.*z^com..*�www�api)
z.yamlz.ymlz.crtz.keyz.pemz.logz.repoz.rulesz.confz.cfgTr   c                 �  � | j                   j                  �       D �](  \  }}t        |j                  d�      �      dk(  r/| j                   |   | j                  |j                  d�      d   <