Struct avassa_client::Client [−][src]
pub struct Client { /* fields omitted */ }The Client is used for all interaction with Control Tower or Edge Enforcer instances.
Use one of the login functions to create an instance.
Implementations
impl Client[src]
impl Client[src]pub fn builder() -> ClientBuilder[src]
Create a Client builder
pub async fn bearer_token(&self) -> String[src]
Returns the login bearer token
pub async fn get_json<T: DeserializeOwned>(
&self,
path: &str,
query_params: Option<&[(&str, &str)]>
) -> Result<T>[src]
&self,
path: &str,
query_params: Option<&[(&str, &str)]>
) -> Result<T>
GET a json payload from the REST API.
pub async fn post_json(&self, path: &str, data: &Value) -> Result<Value>[src]
POST arbitrary JSON to a path
pub async fn volga_open_producer(
&self,
producer_name: &str,
topic: &str,
options: Options
) -> Result<Producer>[src]
&self,
producer_name: &str,
topic: &str,
options: Options
) -> Result<Producer>
Open a volga producer on a topic
pub async fn volga_open_nat_producer(
&self,
producer_name: &str,
topic: &str,
udc: &str,
options: Options
) -> Result<Producer>[src]
&self,
producer_name: &str,
topic: &str,
udc: &str,
options: Options
) -> Result<Producer>
Open a volga NAT producer on a topic in a uDC
pub async fn volga_open_consumer(
&self,
consumer_name: &str,
topic: &str,
options: ConsumerOptions
) -> Result<Consumer>[src]
&self,
consumer_name: &str,
topic: &str,
options: ConsumerOptions
) -> Result<Consumer>
Creates and opens a Volga consumer
pub async fn volga_open_nat_consumer(
&self,
consumer_name: &str,
topic: &str,
udc: &str,
options: ConsumerOptions
) -> Result<Consumer>[src]
&self,
consumer_name: &str,
topic: &str,
udc: &str,
options: ConsumerOptions
) -> Result<Consumer>
Creates and opens a Volga NAT consumer
pub async fn volga_open_log_query(&self, query: &Query) -> Result<QueryStream>[src]
Opens a query stream
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !RefUnwindSafe for Clientimpl !UnwindSafe for Client
impl !UnwindSafe for ClientBlanket Implementations
impl<T> Instrument 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> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,