pub struct PipelineConfig {
pub global: RuntimeConfig,
pub multihost: Option<MultihostConfig>,
pub name: Option<String>,
pub given_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.
multihost: Option<MultihostConfig>Configuration for multihost pipelines.
The presence of this field indicates that the pipeline is running in multihost mode. In the pod with ordinal 0, this triggers starting the coordinator process. In all pods, this tells the pipeline process to await a connection from the coordinator instead of initializing the pipeline immediately.
name: Option<String>Unique system-generated name of the pipeline (format: pipeline-<uuid>).
It is unique across all tenants and cannot be changed.
The <uuid> is also used in the naming of various resources that back the pipeline,
and as such this name is useful to find/identify corresponding resources.
given_name: Option<String>Name given by the tenant to the pipeline. It is only unique within the same tenant, and can be changed by the tenant when the pipeline is stopped.
Given a specific tenant, it can be used to find/identify a specific pipeline of theirs.
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