OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
uaclient
/
clouds
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 08:41:34 AM
rwxr-xr-x
📄
__init__.py
990 bytes
08/08/2024 02:00:59 PM
rw-r--r--
📁
__pycache__
-
10/28/2024 08:41:34 AM
rwxr-xr-x
📄
aws.py
4.19 KB
08/08/2024 02:00:59 PM
rw-r--r--
📄
azure.py
2.84 KB
08/08/2024 02:00:59 PM
rw-r--r--
📄
gcp.py
4.07 KB
08/08/2024 02:00:59 PM
rw-r--r--
📄
identity.py
3.1 KB
08/08/2024 02:00:59 PM
rw-r--r--
Editing: __init__.py
Close
import abc from typing import Any, Dict class AutoAttachCloudInstance(metaclass=abc.ABCMeta): @property @abc.abstractmethod def identity_doc(self) -> Dict[str, Any]: """Return the identity document representing this cloud instance""" pass @property @abc.abstractmethod def cloud_type(self) -> str: """Return a string of the cloud type on which this instance runs""" pass @property @abc.abstractmethod def is_viable(self) -> bool: """Return True if the machine is a viable AutoAttachCloudInstance.""" pass @abc.abstractmethod def should_poll_for_pro_license(self) -> bool: """ Cloud-specific checks for whether the daemon should continously poll for Ubuntu Pro licenses. """ pass @abc.abstractmethod def is_pro_license_present(self, *, wait_for_change: bool) -> bool: """ Check for an Ubuntu Pro license """ pass