vector_config/component/
mod.rs

1mod description;
2mod generate;
3mod marker;
4
5pub use self::description::{ComponentDescription, ExampleError};
6pub use self::generate::GenerateConfig;
7pub use self::marker::{
8    ApiComponent, ComponentMarker, EnrichmentTableComponent, GlobalOptionComponent,
9    ProviderComponent, SecretsComponent, SinkComponent, SourceComponent, TransformComponent,
10};
11
12// Create some type aliases for the component marker/description types, and collect (register,
13// essentially) any submissions for each respective component marker.
14pub type ApiDescription = ComponentDescription<ApiComponent>;
15pub type SourceDescription = ComponentDescription<SourceComponent>;
16pub type TransformDescription = ComponentDescription<TransformComponent>;
17pub type SecretsDescription = ComponentDescription<SecretsComponent>;
18pub type SinkDescription = ComponentDescription<SinkComponent>;
19pub type EnrichmentTableDescription = ComponentDescription<EnrichmentTableComponent>;
20pub type ProviderDescription = ComponentDescription<ProviderComponent>;
21pub type GlobalOptionDescription = ComponentDescription<GlobalOptionComponent>;
22
23inventory::collect!(ApiDescription);
24inventory::collect!(SourceDescription);
25inventory::collect!(TransformDescription);
26inventory::collect!(SecretsDescription);
27inventory::collect!(SinkDescription);
28inventory::collect!(EnrichmentTableDescription);
29inventory::collect!(ProviderDescription);
30inventory::collect!(GlobalOptionDescription);