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]

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]

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]

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]

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]

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]

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

impl Clone for Client[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,