403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/uaclient/clouds/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/uaclient/clouds/__pycache__/__init__.cpython-310.pyc
o

�K�i	�@sVddlZddlmZmZddlmZmZGdd�dejd�ZGdd�deejd�Z	dS)	�N)�Any�Dict)�config�contractc@sjeZdZeejdefdd���Zejdej	de
fdd��Zejdefdd��Zejd	edefd
d��Z
dS)
�AutoAttachInstance�returncC�dS)z?Return True if the machine is a viable AutoAttachCloudInstance.N���selfr	r	�:/usr/lib/python3/dist-packages/uaclient/clouds/__init__.py�	is_viable�zAutoAttachInstance.is_viable�cfgcCr)�{
        Cloud-specific implementation of acquiring the pro token using whatever
        method suits the platform
        Nr	)rrr	r	r�acquire_pro_token�z$AutoAttachInstance.acquire_pro_tokencCr)zw
        Cloud-specific checks for whether the daemon should continously poll
        for Ubuntu Pro licenses.
        Nr	r
r	r	r�should_poll_for_pro_licenserz.AutoAttachInstance.should_poll_for_pro_license�wait_for_changecCr)z1
        Check for an Ubuntu Pro license
        Nr	)rrr	r	r�is_pro_license_presentsz)AutoAttachInstance.is_pro_license_presentN)�__name__�
__module__�__qualname__�property�abc�abstractmethod�boolr
r�UAConfig�strrrrr	r	r	rrsr)�	metaclassc@sXeZdZeejdeeeffdd���Z	eejdefdd���Z
dejdefdd�Z
d	S)
�PublicCloudAutoAttachInstancercCr)z=Return the identity document representing this cloud instanceNr	r
r	r	r�identity_doc'rz*PublicCloudAutoAttachInstance.identity_doccCr)z=Return a string of the cloud type on which this instance runsNr	r
r	r	r�
cloud_type-rz(PublicCloudAutoAttachInstance.cloud_typercCs$t�|�}|j|j|jd�}|dS)r)r"�data�
contractToken)r�UAContractClient�%get_contract_token_for_cloud_instancer"r!)rr�contract_client�token_responser	r	rr3s

�z/PublicCloudAutoAttachInstance.acquire_pro_tokenN)rrrrrrrrrr!r"rrrr	r	r	rr &sr )
r�typingrr�uaclientrr�ABCMetarr r	r	r	r�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit