pub struct Client { /* private fields */ }Expand description
A client to discover available drogue-cloud endpoints and their URL.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new_anonymous(client: Client, api_url: Url) -> Self
pub fn new_anonymous(client: Client, api_url: Url) -> Self
Create a new unauthenticated client instance.
Sourcepub fn new_authenticated(
client: Client,
api_url: Url,
token_provider: impl TokenProvider + 'static,
) -> Self
pub fn new_authenticated( client: Client, api_url: Url, token_provider: impl TokenProvider + 'static, ) -> Self
Create a new authenticated client instance.
Sourcepub async fn get_public_endpoints(
&self,
) -> Result<Option<Endpoints>, ClientError>
pub async fn get_public_endpoints( &self, ) -> Result<Option<Endpoints>, ClientError>
Fetch drogue’s well known endpoint to retrieve a list of accessible endpoints. This endpoint does not require authentication, therefore the returned list of endpoint is not complete.
Sourcepub async fn get_authenticated_endpoints(
&self,
) -> Result<Option<Endpoints>, ClientError>
pub async fn get_authenticated_endpoints( &self, ) -> Result<Option<Endpoints>, ClientError>
Fetch drogue full list of accessible endpoints.
Sourcepub async fn get_drogue_cloud_version(
&self,
) -> Result<Option<DrogueVersion>, ClientError>
pub async fn get_drogue_cloud_version( &self, ) -> Result<Option<DrogueVersion>, ClientError>
Fetch drogue-cloud running version.
Sourcepub async fn get_sso_url(&self) -> Result<Option<Url>, ClientError>
pub async fn get_sso_url(&self) -> Result<Option<Url>, ClientError>
Fetch drogue-cloud Single Sign On provider URL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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