pub struct BusS3SinkConfig {
pub endpoint: String,
pub access_key: String,
pub secret_key: String,
pub bucket: String,
pub prefix: String,
pub batch_size: usize,
pub flush_interval_secs: u64,
pub secure: bool,
pub ignore_cert: bool,
}Expand description
Configuration for the bus S3 sink
Fields§
§endpoint: StringMinIO/S3 endpoint URL (e.g., “http://localhost:9000”)
access_key: StringAccess key
secret_key: StringSecret key
bucket: StringBucket name for bus logs
prefix: StringPath prefix within the bucket
batch_size: usizeBatch size before flushing to S3
flush_interval_secs: u64Max batch age in seconds before flushing
secure: boolWhether to use SSL/TLS
ignore_cert: boolWhether to ignore certificate errors (for self-signed certs)
Implementations§
Source§impl BusS3SinkConfig
impl BusS3SinkConfig
Sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
Create config from environment variables
Required:
MINIO_ENDPOINTorCODETETHER_BUS_S3_ENDPOINTMINIO_ACCESS_KEYorCODETETHER_BUS_S3_ACCESS_KEYMINIO_SECRET_KEYorCODETETHER_BUS_S3_SECRET_KEY
Optional:
CODETETHER_BUS_S3_BUCKET(default: “codetether-training”)CODETETHER_BUS_S3_PREFIX(default: “bus/”)
Sourcepub async fn from_env_or_vault() -> Result<Self>
pub async fn from_env_or_vault() -> Result<Self>
Create config by trying multiple credential sources in order:
- Bus-specific env vars (
MINIO_ENDPOINT,CODETETHER_BUS_S3_ENDPOINT) - Chat-sync env vars (
CODETETHER_CHAT_SYNC_MINIO_ENDPOINT) - Vault secrets at
secret/codetether/providers/chat-sync-minio
Trait Implementations§
Source§impl Clone for BusS3SinkConfig
impl Clone for BusS3SinkConfig
Source§fn clone(&self) -> BusS3SinkConfig
fn clone(&self) -> BusS3SinkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BusS3SinkConfig
impl Debug for BusS3SinkConfig
Source§impl<'de> Deserialize<'de> for BusS3SinkConfig
impl<'de> Deserialize<'de> for BusS3SinkConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BusS3SinkConfig
impl RefUnwindSafe for BusS3SinkConfig
impl Send for BusS3SinkConfig
impl Sync for BusS3SinkConfig
impl Unpin for BusS3SinkConfig
impl UnsafeUnpin for BusS3SinkConfig
impl UnwindSafe for BusS3SinkConfig
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§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>
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::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more