pub struct ControlPlaneClient { /* private fields */ }Implementations§
Source§impl ControlPlaneClient
impl ControlPlaneClient
pub fn new(endpoint: ControlPlaneEndpoint) -> Result<Self>
pub fn endpoint(&self) -> &ControlPlaneEndpoint
pub async fn discover_admin_base_url( proxy_base_url: &str, ) -> Result<AdminDiscoveryDocument>
pub async fn fetch_json<T>(&self, path: &str) -> Result<T>where
T: DeserializeOwned,
pub async fn fetch_json_classified<T>(
&self,
path: &str,
) -> Result<T, ControlPlaneError>where
T: DeserializeOwned,
pub async fn runtime_status(&self) -> Result<RuntimeStatusResponse>
pub async fn capabilities(&self) -> Result<ApiV1Capabilities>
pub async fn operator_summary(&self) -> Result<ApiV1OperatorSummary>
pub async fn snapshot( &self, recent_limit: usize, stats_days: usize, ) -> Result<ApiV1Snapshot>
pub async fn fleet_snapshot(&self) -> Result<FleetSnapshot, ControlPlaneError>
pub async fn providers(&self) -> Result<Vec<ProviderOption>>
Trait Implementations§
Source§impl Clone for ControlPlaneClient
impl Clone for ControlPlaneClient
Source§fn clone(&self) -> ControlPlaneClient
fn clone(&self) -> ControlPlaneClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ControlPlaneClient
impl !UnwindSafe for ControlPlaneClient
impl Freeze for ControlPlaneClient
impl Send for ControlPlaneClient
impl Sync for ControlPlaneClient
impl Unpin for ControlPlaneClient
impl UnsafeUnpin for ControlPlaneClient
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