Struct ocipkg::distribution::Client
source · pub struct Client { /* private fields */ }
Expand description
A client for /v2/<name>/
API endpoint
Implementations§
source§impl Client
impl Client
pub fn new(url: Url, name: Name) -> Result<Self>
pub fn from_image_name(image: &ImageName) -> Result<Self>
Get tags of <name>
repository.
GET /v2/<name>/tags/list
See corresponding OCI distribution spec document for detail.
sourcepub fn get_manifest(&mut self, reference: &Reference) -> Result<ImageManifest>
pub fn get_manifest(&mut self, reference: &Reference) -> Result<ImageManifest>
Get manifest for given repository
GET /v2/<name>/manifests/<reference>
See corresponding OCI distribution spec document for detail.
sourcepub fn push_manifest(
&self,
reference: &Reference,
manifest: &ImageManifest
) -> Result<Url>
pub fn push_manifest( &self, reference: &Reference, manifest: &ImageManifest ) -> Result<Url>
Push manifest to registry
PUT /v2/<name>/manifests/<reference>
Manifest must be pushed after blobs are updated.
See corresponding OCI distribution spec document for detail.
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§
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