[−][src]Struct sdk_cds::Client
Client to request CDS API
Fields
name: String
host: String
token: String
hash: String
insecure_skip_verify_tls: bool
Methods
impl Client
[src]
pub fn new<T: Into<String>>(host: T, token: T) -> Self
[src]
Create a new client to access CDS API
pub async fn status<'_>(&'_ self) -> Result<MonitoringStatus>
[src]
Get CDS Status
pub async fn config<'_>(&'_ self) -> Result<HashMap<String, String>>
[src]
pub async fn me<'_>(&'_ self) -> Result<User>
[src]
Get minimal information about current user
pub async fn broadcasts<'_>(&'_ self) -> Result<Vec<Broadcast>>
[src]
Get the list of broadcasts
pub async fn projects<'_>(&'_ self) -> Result<Vec<Project>>
[src]
Get the list of projects
pub async fn applications<'_, '_>(
&'_ self,
project_key: &'_ str
) -> Result<Vec<Application>>
[src]
&'_ self,
project_key: &'_ str
) -> Result<Vec<Application>>
Get the list of applications in a project
pub async fn application<'_, '_, '_>(
&'_ self,
project_key: &'_ str,
application_name: &'_ str
) -> Result<Application>
[src]
&'_ self,
project_key: &'_ str,
application_name: &'_ str
) -> Result<Application>
Get the application's details given the project key and the application name
pub async fn workflows<'_, '_>(
&'_ self,
project_key: &'_ str
) -> Result<Vec<Workflow>>
[src]
&'_ self,
project_key: &'_ str
) -> Result<Vec<Workflow>>
Get all the workflows inside a project given his project key
pub async fn workflow<'_, '_, '_>(
&'_ self,
project_key: &'_ str,
workflow_name: &'_ str
) -> Result<Workflow>
[src]
&'_ self,
project_key: &'_ str,
workflow_name: &'_ str
) -> Result<Workflow>
Get the workflow's details given his name
pub async fn queue_count<'_>(&'_ self) -> Result<QueueCount>
[src]
Fetch the count of the queue
pub async fn bookmarks<'_>(&'_ self) -> Result<Vec<Bookmark>>
[src]
Get all personal bookmarks
pub async fn last_run<'_, '_, '_>(
&'_ self,
project_key: &'_ str,
workflow_name: &'_ str
) -> Result<WorkflowRun>
[src]
&'_ self,
project_key: &'_ str,
workflow_name: &'_ str
) -> Result<WorkflowRun>
Get last workflow run given their workflow name
pub async fn service_register<'_, '_>(
&'_ self,
service: &'_ Service
) -> Result<String>
[src]
&'_ self,
service: &'_ Service
) -> Result<String>
Useful to register a new service to the API
pub async fn stream_json<'_, T: Serialize, U: DeserializeOwned>(
&'_ self,
method: String,
path: String,
body: T
) -> Result<U>
[src]
&'_ self,
method: String,
path: String,
body: T
) -> Result<U>
Trait Implementations
impl Debug for Client
[src]
impl Default for Client
[src]
impl<'de> Deserialize<'de> for Client where
Client: Default,
[src]
Client: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,