pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(config: ConfigFile, endpoint: Option<String>) -> Result<Client>
pub fn worker_key<I: Into<String>>(&mut self, key: I)
pub fn signup_secret<I: Into<String>>(&mut self, secret: I)
pub fn get(&self, path: Cow<'static, str>) -> RequestBuilder
pub fn post(&self, path: Cow<'static, str>) -> RequestBuilder
pub async fn list_workers(&self) -> Result<Vec<Worker>>
pub async fn sync_suite(&self, import: &SuiteImport) -> Result<()>
pub async fn list_pkgs(&self, list: &ListPkgs) -> Result<Vec<PkgRelease>>
pub async fn match_one_pkg(&self, list: &ListPkgs) -> Result<PkgRelease>
pub async fn fetch_log(&self, id: i32) -> Result<Vec<u8>>
pub async fn fetch_diffoscope(&self, id: i32) -> Result<Vec<u8>>
pub async fn fetch_attestation(&self, id: i32) -> Result<Vec<u8>>
pub async fn fetch_public_keys(&self) -> Result<PublicKeys>
pub async fn list_queue(&self, list: &ListQueue) -> Result<QueueList>
pub async fn push_queue(&self, push: &PushQueue) -> Result<()>
pub async fn pop_queue(&self, query: &WorkQuery) -> Result<JobAssignment>
pub async fn drop_queue(&self, query: &DropQueueItem) -> Result<()>
pub async fn requeue_pkgs(&self, requeue: &RequeueQuery) -> Result<()>
pub async fn ping_build(&self, body: &PingRequest) -> Result<()>
pub async fn report_build(&self, ticket: &BuildReport) -> Result<()>
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