pub struct PipelineConfig {
pub global: RuntimeConfig,
pub name: Option<String>,
pub storage_config: Option<StorageConfig>,
pub secrets_dir: Option<String>,
pub inputs: BTreeMap<Cow<'static, str>, InputEndpointConfig>,
pub outputs: BTreeMap<Cow<'static, str>, OutputEndpointConfig>,
pub program_ir: Option<ProgramIr>,
}Expand description
Pipeline deployment configuration. It represents configuration entries directly provided by the user (e.g., runtime configuration) and entries derived from the schema of the compiled program (e.g., connectors). Storage configuration, if applicable, is set by the runner.
Fields§
§global: RuntimeConfigGlobal controller configuration.
name: Option<String>Pipeline name.
storage_config: Option<StorageConfig>Configuration for persistent storage
If global.storage is Some(_), this field must be set to some
StorageConfig. If global.storage is `None``, the pipeline ignores
this field.
secrets_dir: Option<String>Directory containing values of secrets.
If this is not set, a default directory is used.
inputs: BTreeMap<Cow<'static, str>, InputEndpointConfig>Input endpoint configuration.
outputs: BTreeMap<Cow<'static, str>, OutputEndpointConfig>Output endpoint configuration.
program_ir: Option<ProgramIr>Program information.
Implementations§
Source§impl PipelineConfig
impl PipelineConfig
pub fn max_parallel_connector_init(&self) -> u64
pub fn with_storage( self, storage: Option<(StorageConfig, StorageOptions)>, ) -> Self
pub fn storage(&self) -> Option<(&StorageConfig, &StorageOptions)>
Sourcepub fn secrets_dir(&self) -> &Path
pub fn secrets_dir(&self) -> &Path
Returns self.secrets_dir, or the default secrets directory if it isn’t
set.
Sourcepub fn display_summary(&self) -> String
pub fn display_summary(&self) -> String
Abbreviated config that can be printed in the log on pipeline startup.
Trait Implementations§
Source§impl Clone for PipelineConfig
impl Clone for PipelineConfig
Source§fn clone(&self) -> PipelineConfig
fn clone(&self) -> PipelineConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more