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
Sourcepub fn program_info_subset(&self) -> PipelineConfigProgramInfo
pub fn program_info_subset(&self) -> PipelineConfigProgramInfo
Extract the compiler-generated subset of the configuration (connectors and program IR) used to compute pipeline diffs.
pub fn with_storage( self, storage: Option<(StorageConfig, StorageOptions)>, ) -> Self
pub fn storage(&self) -> Option<(&StorageConfig, &StorageOptions)>
Sourcepub fn pipeline_identity(&self) -> Option<PipelineIdentity>
pub fn pipeline_identity(&self) -> Option<PipelineIdentity>
Returns this pipeline’s PipelineIdentity, used to identify the
pipeline that owns an S3 checkpoint bucket.
Returns None when the pipeline has no system-generated name.
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§impl Debug for PipelineConfig
impl Debug for PipelineConfig
Source§impl<'de> Deserialize<'de> for PipelineConfig
impl<'de> Deserialize<'de> for PipelineConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PipelineConfig
impl PartialEq for PipelineConfig
Source§impl Serialize for PipelineConfig
impl Serialize for PipelineConfig
impl StructuralPartialEq for PipelineConfig
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnsafeUnpin for PipelineConfig
impl UnwindSafe for PipelineConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more