pub struct OciClient { /* private fields */ }Expand description
Thin wrapper around oci-client.
Implementations§
Source§impl OciClient
impl OciClient
pub fn new(auth: OciAuth) -> OciClient
pub fn auth(&self) -> &OciAuth
pub async fn pull_manifest( &self, image: &OciRef, ) -> Result<(OciManifest, String), OciError>
pub async fn inspect( &self, image: &OciRef, ) -> Result<OciInspectResult, OciError>
pub async fn resolve_digest(&self, image: &OciRef) -> Result<String, OciError>
pub async fn exists(&self, image: &OciRef) -> Result<bool, OciError>
pub async fn push_manifest( &self, target: &OciRef, manifest: &OciManifest, ) -> Result<String, OciError>
pub async fn promote( &self, source: &OciRef, target: &OciRef, force: bool, ) -> Result<String, OciError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OciClient
impl !UnwindSafe for OciClient
impl Freeze for OciClient
impl Send for OciClient
impl Sync for OciClient
impl Unpin for OciClient
impl UnsafeUnpin for OciClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more