pub struct Client<A: AuthType> { /* private fields */ }
Expand description
A struct representing a user of a ProGet instance.
Most methods require authentication in order to run. For the methods that don’t, you can call
Client::new_anon
to make a new client without any authentication. If you’d like to run any
authenticated calls, use Client::new_auth
instead.
All methods on the Anon
version of the client are automatically available on the Auth
version, so there’s no need to make two separate clients.
Implementations§
source§impl Client<Auth>
impl Client<Auth>
Functions to create and interact with ProGet with authentication.
sourcepub async fn upload_deb(
&self,
feed_name: &str,
component_name: &str,
deb_name: &str,
deb_data: &[u8]
) -> Result<()>
pub async fn upload_deb( &self, feed_name: &str, component_name: &str, deb_name: &str, deb_data: &[u8] ) -> Result<()>
Upload a .deb
package.
Arguments
feed_name
: The feed to upload the.deb
package to.component_name
: The component in the APT repository to upload the deb to. For example, this would bebionic
indeb https://proget.inedo.com deb-packages bionic
.deb_name
: The name of the.deb
file to register the package under (i.e.pkg_1.0.0-1_amd64.deb
).deb_data
: The binary data of the.deb
file.
Errors
This function returns an error if there was an issue uploading the file.
Trait Implementations§
Auto Trait Implementations§
impl<A> !RefUnwindSafe for Client<A>
impl<A> Send for Client<A>where A: Send,
impl<A> Sync for Client<A>where A: Sync,
impl<A> Unpin for Client<A>where A: Unpin,
impl<A> !UnwindSafe for Client<A>
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