[−][src]Struct rebuilderd_common::api::Client
Implementations
impl Client
[src]
pub fn new(config: ConfigFile, endpoint: Option<String>) -> Client
[src]
pub fn with_auth_cookie(&mut self) -> Result<&mut Self>
[src]
pub fn auth_cookie<I: Into<String>>(&mut self, cookie: I) -> &mut Self
[src]
pub fn worker_key<I: Into<String>>(&mut self, key: I)
[src]
pub fn signup_secret<I: Into<String>>(&mut self, secret: I)
[src]
pub fn get(&self, path: &'static str) -> RequestBuilder
[src]
pub fn post(&self, path: &'static str) -> RequestBuilder
[src]
pub async fn list_workers<'_>(&'_ self) -> Result<Vec<Worker>>
[src]
pub async fn sync_suite<'_, '_>(&'_ self, import: &'_ SuiteImport) -> Result<()>
[src]
pub async fn list_pkgs<'_, '_>(
&'_ self,
list: &'_ ListPkgs
) -> Result<Vec<PkgRelease>>
[src]
&'_ self,
list: &'_ ListPkgs
) -> Result<Vec<PkgRelease>>
pub async fn list_queue<'_, '_>(
&'_ self,
list: &'_ ListQueue
) -> Result<QueueList>
[src]
&'_ self,
list: &'_ ListQueue
) -> Result<QueueList>
pub async fn push_queue<'_, '_>(&'_ self, push: &'_ PushQueue) -> Result<()>
[src]
pub async fn pop_queue<'_, '_>(
&'_ self,
query: &'_ WorkQuery
) -> Result<JobAssignment>
[src]
&'_ self,
query: &'_ WorkQuery
) -> Result<JobAssignment>
pub async fn drop_queue<'_, '_>(
&'_ self,
query: &'_ DropQueueItem
) -> Result<()>
[src]
&'_ self,
query: &'_ DropQueueItem
) -> Result<()>
pub async fn requeue_pkgs<'_, '_>(
&'_ self,
requeue: &'_ RequeueQuery
) -> Result<()>
[src]
&'_ self,
requeue: &'_ RequeueQuery
) -> Result<()>
pub async fn ping_build<'_, '_>(&'_ self, ticket: &'_ QueueItem) -> Result<()>
[src]
pub async fn report_build<'_, '_>(
&'_ self,
ticket: &'_ BuildReport
) -> Result<()>
[src]
&'_ self,
ticket: &'_ BuildReport
) -> Result<()>
Auto Trait Implementations
impl !RefUnwindSafe for Client
[src]
impl Send for Client
[src]
impl Sync for Client
[src]
impl Unpin for Client
[src]
impl !UnwindSafe for Client
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub 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>,