Struct fluvio_cluster::LocalConfigBuilder [−][src]
Builder for LocalConfig
.
Implementations
impl LocalConfigBuilder
[src]
pub fn log_dir<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn data_dir<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
[src]
Sets the data-log directory. This is where streaming data is stored.
Example
let config = builder .data_dir("/tmp/fluvio") .build()?;
pub fn rust_log<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
Sets the RUST_LOG
environment variable for the installation.
Example
let config = builder .rust_log("debug") .build()?;
pub fn spu_replicas(&mut self, value: u16) -> &mut Self
[src]
Sets the number of SPU replicas that should be provisioned. Defaults to 1.
Example
let config = builder .spu_replicas(2) .build()?;
pub fn chart_version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
The version of the Fluvio system chart to install
This is the only required field that does not have a default value.
Example
let config = builder .chart_version("0.7.0-alpha.1") .build()?;
pub fn install_sys(&mut self, value: bool) -> &mut Self
[src]
Whether to install the fluvio-sys
chart in the full installation.
Defaults to true
.
Example
If you want to disable installing the system chart, you can do this
let config = builder .install_sys(false) .build()?;
pub fn skip_checks(&mut self, value: bool) -> &mut Self
[src]
Whether to skip pre-install checks before installation.
Defaults to false
.
Example
let config = builder .skip_checks(false) .build()?;
pub fn render_checks(&mut self, value: bool) -> &mut Self
[src]
Whether to render pre-install checks to stdout as they are performed.
Defaults to false
.
Example
let config = builder .render_checks(true) .build()?;
impl LocalConfigBuilder
[src]
pub fn build(&self) -> Result<LocalConfig, ClusterError>
[src]
Creates a LocalConfig
with the current configuration.
Example
The simplest flow to create a ClusterConfig
looks like:
let config: LocalConfig = LocalConfig::builder("0.7.0-alpha.1").build()?;
pub fn tls<C: Into<TlsPolicy>, S: Into<TlsPolicy>>(
&mut self,
client: C,
server: S
) -> &mut Self
[src]
&mut self,
client: C,
server: S
) -> &mut Self
Sets the TLS Policy that the client and server will use to communicate.
By default, these are set to TlsPolicy::Disabled
.
Example
use std::path::PathBuf; use fluvio::config::TlsPaths; use fluvio_cluster::LocalInstaller; let cert_path = PathBuf::from("/tmp/certs"); let client = TlsPaths { domain: "fluvio.io".to_string(), ca_cert: cert_path.join("ca.crt"), cert: cert_path.join("client.crt"), key: cert_path.join("client.key"), }; let server = TlsPaths { domain: "fluvio.io".to_string(), ca_cert: cert_path.join("ca.crt"), cert: cert_path.join("server.crt"), key: cert_path.join("server.key"), }; let config = LocalConfig::builder("0.7.0-alpha.1") .tls(client, server) .build()?;
pub fn local_chart<S: Into<PathBuf>>(
&mut self,
local_chart_location: S
) -> &mut Self
[src]
&mut self,
local_chart_location: S
) -> &mut Self
Sets a local helm chart location to search for Fluvio charts.
This is often desirable when developing for Fluvio locally and making
edits to the chart. When using this option, the argument is expected to be
a local filesystem path. The path given is expected to be the parent directory
of both the fluvio-app
and fluvio-sys
charts.
This option is mutually exclusive from with_remote_chart
; if both are used,
the latest one defined is the one that's used.
Example
let config = builder .local_chart("./k8-util/helm") .build()?;
Trait Implementations
impl Clone for LocalConfigBuilder
[src]
fn clone(&self) -> LocalConfigBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for LocalConfigBuilder
[src]
fn default() -> LocalConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for LocalConfigBuilder
[src]
impl Send for LocalConfigBuilder
[src]
impl Sync for LocalConfigBuilder
[src]
impl Unpin for LocalConfigBuilder
[src]
impl UnwindSafe for LocalConfigBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,