feat(slice-2): implement static file collector for YAML/INI and Ansible JSON dynamic inventory exporter
This commit is contained in:
1 parent
68802710b0
commit
951be389a1
11 files changed
+564
-22
No files matched your search
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in new issue
Block a user