Implement HTTP ingestion and retention lifecycle
This commit is contained in:
parent
2173f702c1
commit
c33baa3635
15 changed files with 2478 additions and 69 deletions
|
|
@ -12,6 +12,7 @@ from artifactstore.dataplane import InProcessDataPlane
|
|||
from artifactstore.db.engine import create_engine
|
||||
from artifactstore.events import RegistryViewWriter
|
||||
from artifactstore.registry import Registry
|
||||
from artifactstore.retention import RetentionPolicy
|
||||
from artifactstore.storage import LocalBackend
|
||||
|
||||
__all__ = ["build_registry"]
|
||||
|
|
@ -24,4 +25,5 @@ def build_registry(settings: Settings | None = None) -> Registry:
|
|||
backend = LocalBackend(effective.storage_local_root, backend_id="local")
|
||||
dataplane = InProcessDataPlane(backend)
|
||||
view_writer = RegistryViewWriter()
|
||||
return Registry(engine, dataplane, view_writer)
|
||||
retention_policy = RetentionPolicy.from_toml(effective.retention_config_path)
|
||||
return Registry(engine, dataplane, view_writer, retention_policy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue