Struct bulwark_config::Config
source · pub struct Config {
pub service: Service,
pub runtime: Runtime,
pub state: State,
pub thresholds: Thresholds,
pub metrics: Metrics,
pub secrets: Vec<Secret>,
pub plugins: Vec<Plugin>,
pub presets: Vec<Preset>,
pub resources: Vec<Resource>,
}
Expand description
The root of a Bulwark configuration.
Wraps all child configuration structures and provides the internal representation of Bulwark’s configuration.
Fields§
§service: Service
Configuration for the services being launched.
runtime: Runtime
Configuration for the services being launched.
state: State
Configuration for state managed by Bulwark plugins.
thresholds: Thresholds
Configuration for the decision thresholds.
metrics: Metrics
Configuration for metrics collection.
secrets: Vec<Secret>
A list of configurations for individual secrets.
plugins: Vec<Plugin>
A list of configurations for individual plugins.
presets: Vec<Preset>
A list of plugin groups that allows a plugin set to be loaded with a single reference.
resources: Vec<Resource>
A list of routes that maps from resource paths to plugins or presets.
Implementations§
source§impl Config
impl Config
sourcepub fn secret<'a>(&self, reference: &str) -> Option<&Secret>where
Secret: 'a,
pub fn secret<'a>(&self, reference: &str) -> Option<&Secret>where
Secret: 'a,
Looks up the Secret
corresponding to the reference
string.
§Arguments
reference
- A string that corresponds to aSecret::reference
value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 more