Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/uaclient/__pycache__/ |
Upload File : |
o ��Jh�K � @ s d dl Z d dlZd dlZd dlmZmZ d dlmZmZm Z d dl mZmZm Z mZmZmZmZmZ d dlmZmZmZmZmZmZmZmZmZ d dlmZmZ d dl m!Z! e�"e�#e$��Z%dd d �Z&dZ'dZ(d Z)e�*� Z+G dd� d�Z,de-fdd�Z.ddd�Z/de-fdd�Z0dS )� N)� lru_cache�wraps)�Any�Dict�Optional)�apt�event_logger� exceptions�http�messages�snap�system�util) �APT_NEWS_URL�BASE_CONTRACT_URL�BASE_LIVEPATCH_URL�BASE_SECURITY_URL�BASE_VULNERABILITY_DATA_URL�CONFIG_DEFAULTS�CONFIG_FIELD_ENVVAR_ALLOWLIST�DEFAULT_CONFIG_FILE�DEFAULT_DATA_DIR)�state_files�user_config_file)� safe_load�name�type)�availableResources�resourceEntitlements�_unset)� http_proxy�https_proxy�apt_http_proxy�apt_https_proxy�ua_apt_http_proxy�ua_apt_https_proxy�global_apt_http_proxy�global_apt_https_proxy�update_messaging_timer�metering_timer�apt_news�apt_news_url�vulnerability_data_url_prefix�lxd_guest_attach) �contract_url�data_dir�features�log_file� log_level�security_urlr, �settings_overrides� ua_config� livepatch_urlc @ s e Zd ZdZdZdZ dIdeeee f dee j dee ddfd d �Ze defdd��Ze defd d��Ze defdd��Ze dee fdd��Zejdefdd��Ze dee fdd��Zejdefdd��Ze dee fdd��Zejdefdd��Ze dee fdd��Zejdefdd��Ze defdd��Zejdefd d��Ze edd!�dee fd"d#���Zejdefd$d#��Ze edd!�dee fd%d&���Zejdefd'd&��Ze defd(d)��Zejdefd*d)��Ze defd+d,��Zejdefd-d,��Ze defd.d/��Zejdefd0d/��Ze defd1d2��Zejdefd3d2��Ze defd4d5��Z e jdefd6d5��Z e defd7d8��Z!e!jdefd9d8��Z!e de j"fd:d;��Z#e#jde j"fd<d;��Z#e d=d>� �Z$e d?d@� �Z%e defdAdB��Z&e dCdD� �Z'dEdF� Z(dGdH� Z)dS )J�UAConfig)r$ r% )r&