pub struct ConfigExpander;Implementations§
Source§impl ConfigExpander
impl ConfigExpander
Sourcepub fn expand(
root: impl AsRef<Path>,
profile: &str,
) -> Result<(Option<String>, Vec<String>, Yaml)>
pub fn expand( root: impl AsRef<Path>, profile: &str, ) -> Result<(Option<String>, Vec<String>, Yaml)>
Transforms risedev.yml and risedev-profiles.user.yml to a fully expanded yaml file.
Format:
my-profile:
config-path: src/config/ci-recovery.toml
env:
RUST_LOG: "info,risingwave_storage::hummock=off"
ENABLE_PRETTY_LOG: "true"
steps:
- use: minio
- use: sqlite
- use: meta-node
meta-backend: sqlite
- use: compute-node
parallelism: 1
- use: frontend§Arguments
rootis the root directory of these YAML files.profileis the selected config profile called byrisedev dev <profile>. It is one of the keys in theprofilesection.
§Returns
(config_path, env, steps)
Sourcepub fn expand_with_extra_info(
root: impl AsRef<Path>,
profile: &str,
extra_info: HashMap<String, String>,
) -> Result<(Option<String>, Vec<String>, Yaml)>
pub fn expand_with_extra_info( root: impl AsRef<Path>, profile: &str, extra_info: HashMap<String, String>, ) -> Result<(Option<String>, Vec<String>, Yaml)>
See ConfigExpander::expand for other information.
§Arguments
extra_infois additional variables for variable expansion byDollarExpander.
Sourcepub fn deserialize(expanded_config: &Yaml) -> Result<Vec<ServiceConfig>>
pub fn deserialize(expanded_config: &Yaml) -> Result<Vec<ServiceConfig>>
Parses the expanded yaml into ServiceConfigs.
The order is the same as the original array’s order.
Auto Trait Implementations§
impl Freeze for ConfigExpander
impl RefUnwindSafe for ConfigExpander
impl Send for ConfigExpander
impl Sync for ConfigExpander
impl Unpin for ConfigExpander
impl UnwindSafe for ConfigExpander
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request