turul_ai_catalog_storage/
lib.rs1#![doc = include_str!("../README.md")]
2#![warn(missing_docs)]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4
5mod assembly;
6mod ids;
7mod import;
8mod operator;
9mod owned;
10mod provenance;
11mod records;
12mod registration;
13mod store;
14
15#[cfg(feature = "dynamodb")]
16mod dynamodb;
17#[cfg(feature = "in-memory")]
18mod in_memory;
19#[cfg(feature = "postgres")]
20mod postgres;
21#[cfg(feature = "sqlite")]
22mod sqlite;
23
24pub use assembly::{AssembleError, Assembled, Omission, OmissionReason, assemble};
25pub use ids::{CatalogId, Etag, RecordKey, WriterId};
26pub use import::{ImportError, ImportMode, import};
27pub use operator::{Expiry, Registration, RemoveError, list_registrations, remove_registration};
28pub use provenance::{ModeKind, Provenance, ProvenanceError};
29pub use records::{EntryRecord, HostRecord, RecordError};
30pub use registration::{
31 ModeRequest, PolicyError, PublisherVerifier, Registered, Registrar, RegistrationError,
32 RegistrationPolicy, VerifierRefusal, WriterGrant,
33};
34pub use store::{
35 CatalogStore, Condition, ItemCounts, PurgeReport, ScannedEntry, StoreError, Stored, StoredEntry,
36};
37
38#[cfg(feature = "in-memory")]
39pub use in_memory::InMemoryCatalogStore;
40
41#[cfg(feature = "sqlite")]
42pub use sqlite::SqliteCatalogStore;
43
44#[cfg(feature = "postgres")]
45pub use postgres::PostgresCatalogStore;
46
47#[cfg(feature = "dynamodb")]
48pub use dynamodb::DynamoDbCatalogStore;