Buckets:

download
raw
752 Bytes
from abc import ABC, abstractmethod
from typing import List, Dict
class ProviderAdapter(ABC):
"""
Base interface for all cloud / provider adapters.
"""
@abstractmethod
async def discover_nodes(self) -> List[Dict]:
"""
Discover nodes that belong to this provider.
Should NOT fetch live usage.
"""
pass
@abstractmethod
async def get_node_metadata(self, node_id: str) -> Dict:
"""
Provider-specific metadata (region, AZ, instance type, GPU type).
"""
pass
@abstractmethod
async def reconcile(self) -> None:
"""
Periodic reconciliation loop:
- add missing nodes
- mark terminated nodes
"""
pass

Xet Storage Details

Size:
752 Bytes
·
Xet hash:
c3b42ae3abfac374c766acb569399515a60cda4a5fc6b6e4efa3b41a856722df

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.