vector_vrl_functions/
lib.rs1#![deny(warnings)]
2
3use vrl::{compiler::Function, path::OwnedTargetPath};
4
5pub mod get_secret;
6pub mod remove_secret;
7pub mod set_secret;
8pub mod set_semantic_meaning;
9
10#[allow(clippy::large_enum_variant)]
11#[derive(Clone, Debug)]
12pub enum MetadataKey {
13 Legacy(String),
14 Query(OwnedTargetPath),
15}
16
17pub const LEGACY_METADATA_KEYS: [&str; 2] = ["datadog_api_key", "splunk_hec_token"];
18
19pub fn all() -> Vec<Box<dyn Function>> {
20 vec![
21 Box::new(set_semantic_meaning::SetSemanticMeaning) as _,
22 Box::new(get_secret::GetSecret) as _,
23 Box::new(remove_secret::RemoveSecret) as _,
24 Box::new(set_secret::SetSecret) as _,
25 ]
26}