10 lines
282 B
Python
10 lines
282 B
Python
from abc import ABC, abstractmethod
|
|
from typing import List
|
|
from inventory_collector.models import HostRecord
|
|
|
|
class BaseCollector(ABC):
|
|
@abstractmethod
|
|
def collect(self) -> List[HostRecord]:
|
|
"""Collect host records from source."""
|
|
raise NotImplementedError
|