[][src]Struct rebuilderd_common::api::Client

pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub fn new(config: ConfigFile, endpoint: Option<String>) -> Client[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]

pub async fn list_queue<'_, '_>(
    &'_ self,
    list: &'_ ListQueue
) -> Result<QueueList>
[src]

pub async fn push_queue<'_, '_>(&'_ self, push: &'_ PushQueue) -> Result<()>[src]

pub async fn pop_queue<'_, '_>(
    &'_ self,
    query: &'_ WorkQuery
) -> Result<JobAssignment>
[src]

pub async fn drop_queue<'_, '_>(
    &'_ self,
    query: &'_ DropQueueItem
) -> Result<()>
[src]

pub async fn requeue_pkgs<'_, '_>(
    &'_ self,
    requeue: &'_ RequeueQuery
) -> Result<()>
[src]

pub async fn ping_build<'_, '_>(&'_ self, ticket: &'_ QueueItem) -> Result<()>[src]

pub async fn report_build<'_, '_>(
    &'_ self,
    ticket: &'_ BuildReport
) -> Result<()>
[src]

Auto Trait Implementations

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> Instrument for T[src]

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

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.