pub struct AgentSecureClient<T> { /* private fields */ }
Implementations§
Source§impl<T> AgentSecureClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AgentSecureClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AgentSecureClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn tagger_stream_entities(
&mut self,
request: impl IntoRequest<StreamTagsRequest>,
) -> Result<Response<Streaming<StreamTagsResponse>>, Status>
pub async fn tagger_stream_entities( &mut self, request: impl IntoRequest<StreamTagsRequest>, ) -> Result<Response<Streaming<StreamTagsResponse>>, Status>
subscribes to added, removed, or changed entities in the Tagger and streams them to clients as events.
Sourcepub async fn tagger_generate_container_id_from_origin_info(
&mut self,
request: impl IntoRequest<GenerateContainerIdFromOriginInfoRequest>,
) -> Result<Response<GenerateContainerIdFromOriginInfoResponse>, Status>
pub async fn tagger_generate_container_id_from_origin_info( &mut self, request: impl IntoRequest<GenerateContainerIdFromOriginInfoRequest>, ) -> Result<Response<GenerateContainerIdFromOriginInfoResponse>, Status>
Generates a container ID from Origin Info.
Sourcepub async fn tagger_fetch_entity(
&mut self,
request: impl IntoRequest<FetchEntityRequest>,
) -> Result<Response<FetchEntityResponse>, Status>
pub async fn tagger_fetch_entity( &mut self, request: impl IntoRequest<FetchEntityRequest>, ) -> Result<Response<FetchEntityResponse>, Status>
fetches an entity from the Tagger with the desired cardinality tags.
Sourcepub async fn dogstatsd_capture_trigger(
&mut self,
request: impl IntoRequest<CaptureTriggerRequest>,
) -> Result<Response<CaptureTriggerResponse>, Status>
pub async fn dogstatsd_capture_trigger( &mut self, request: impl IntoRequest<CaptureTriggerRequest>, ) -> Result<Response<CaptureTriggerResponse>, Status>
Trigger a dogstatsd capture. Only one capture can be triggered at a time.
Sourcepub async fn dogstatsd_set_tagger_state(
&mut self,
request: impl IntoRequest<TaggerState>,
) -> Result<Response<TaggerStateResponse>, Status>
pub async fn dogstatsd_set_tagger_state( &mut self, request: impl IntoRequest<TaggerState>, ) -> Result<Response<TaggerStateResponse>, Status>
Set the tagger state for dogstatsd.
pub async fn client_get_configs( &mut self, request: impl IntoRequest<ClientGetConfigsRequest>, ) -> Result<Response<ClientGetConfigsResponse>, Status>
pub async fn get_config_state( &mut self, request: impl IntoRequest<()>, ) -> Result<Response<GetStateConfigResponse>, Status>
pub async fn client_get_configs_ha( &mut self, request: impl IntoRequest<ClientGetConfigsRequest>, ) -> Result<Response<ClientGetConfigsResponse>, Status>
pub async fn get_config_state_ha( &mut self, request: impl IntoRequest<()>, ) -> Result<Response<GetStateConfigResponse>, Status>
pub async fn reset_config_state( &mut self, request: impl IntoRequest<()>, ) -> Result<Response<ResetStateConfigResponse>, Status>
Sourcepub async fn workloadmeta_stream_entities(
&mut self,
request: impl IntoRequest<WorkloadmetaStreamRequest>,
) -> Result<Response<Streaming<WorkloadmetaStreamResponse>>, Status>
pub async fn workloadmeta_stream_entities( &mut self, request: impl IntoRequest<WorkloadmetaStreamRequest>, ) -> Result<Response<Streaming<WorkloadmetaStreamResponse>>, Status>
Subscribes to added, removed, or changed entities in the Workloadmeta and streams them to clients as events.
Sourcepub async fn register_remote_agent(
&mut self,
request: impl IntoRequest<RegisterRemoteAgentRequest>,
) -> Result<Response<RegisterRemoteAgentResponse>, Status>
pub async fn register_remote_agent( &mut self, request: impl IntoRequest<RegisterRemoteAgentRequest>, ) -> Result<Response<RegisterRemoteAgentResponse>, Status>
Registers a remote agent.
Sourcepub async fn autodiscovery_stream_config(
&mut self,
request: impl IntoRequest<()>,
) -> Result<Response<Streaming<AutodiscoveryStreamResponse>>, Status>
pub async fn autodiscovery_stream_config( &mut self, request: impl IntoRequest<()>, ) -> Result<Response<Streaming<AutodiscoveryStreamResponse>>, Status>
Subscribes to autodiscovery config updates
Get the host tags
Sourcepub async fn stream_config_events(
&mut self,
request: impl IntoRequest<ConfigStreamRequest>,
) -> Result<Response<Streaming<ConfigEvent>>, Status>
pub async fn stream_config_events( &mut self, request: impl IntoRequest<ConfigStreamRequest>, ) -> Result<Response<Streaming<ConfigEvent>>, Status>
Streams config events to the remote agent.
Trait Implementations§
Source§impl<T: Clone> Clone for AgentSecureClient<T>
impl<T: Clone> Clone for AgentSecureClient<T>
Source§fn clone(&self) -> AgentSecureClient<T>
fn clone(&self) -> AgentSecureClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for AgentSecureClient<T>
impl<T> RefUnwindSafe for AgentSecureClient<T>where
T: RefUnwindSafe,
impl<T> Send for AgentSecureClient<T>where
T: Send,
impl<T> Sync for AgentSecureClient<T>where
T: Sync,
impl<T> Unpin for AgentSecureClient<T>where
T: Unpin,
impl<T> UnwindSafe for AgentSecureClient<T>where
T: UnwindSafe,
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request