Skip to main content

PipelineConfig

Struct PipelineConfig 

Source
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: RuntimeConfig

Global 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

Source

pub fn max_parallel_connector_init(&self) -> u64

Source

pub fn with_storage( self, storage: Option<(StorageConfig, StorageOptions)>, ) -> Self

Source

pub fn storage(&self) -> Option<(&StorageConfig, &StorageOptions)>

Source

pub fn secrets_dir(&self) -> &Path

Returns self.secrets_dir, or the default secrets directory if it isn’t set.

Source

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

Source§

fn clone(&self) -> PipelineConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PipelineConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PipelineConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for PipelineConfig

Source§

fn eq(&self, other: &PipelineConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PipelineConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'__s> ToSchema<'__s> for PipelineConfig

Source§

fn schema() -> (&'__s str, RefOr<Schema>)

Return a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.
Source§

fn aliases() -> Vec<(&'__s str, Schema)>

Optional set of alias schemas for the ToSchema::schema. Read more
Source§

impl StructuralPartialEq for PipelineConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,