[−][src]Struct oras::Client
Connects to an OCI registry and pushes or pulls artifacts with custom metadata types.
Implementations
impl Client
[src]
pub fn new(oci_client: OCIClient) -> Self
[src]
Allocates a new Client
.
pub async fn push<T, '_, '_>(
&'_ mut self,
_reference: &'_ Reference,
_object: T
) -> Result<OciManifest> where
T: TryInto<Vec<u8>, Error = Error> + Send,
[src]
&'_ mut self,
_reference: &'_ Reference,
_object: T
) -> Result<OciManifest> where
T: TryInto<Vec<u8>, Error = Error> + Send,
Push an object to an OCI registry.
pub async fn pull<T, '_, '_>(
&'_ mut self,
reference: &'_ Reference
) -> Result<(T, OciManifest)> where
T: TryFrom<Vec<u8>, Error = Error> + Send,
[src]
&'_ mut self,
reference: &'_ Reference
) -> Result<(T, OciManifest)> where
T: TryFrom<Vec<u8>, Error = Error> + Send,
Pull an object from an OCI registry.
Trait Implementations
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> 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>,