pub struct Client { /* private fields */ }
Expand description
Client to containerd’s APIs.
Implementations§
source§impl Client
impl Client
sourcepub async fn from_path(path: impl AsRef<Path>) -> Result<Self, Error>
pub async fn from_path(path: impl AsRef<Path>) -> Result<Self, Error>
Create a new client from UDS socket.
sourcepub fn version(&self) -> VersionClient<Channel>
pub fn version(&self) -> VersionClient<Channel>
Version service.
sourcepub fn tasks(&self) -> TasksClient<Channel>
pub fn tasks(&self) -> TasksClient<Channel>
Task service client.
sourcepub fn transfer(&self) -> TransferClient<Channel>
pub fn transfer(&self) -> TransferClient<Channel>
Transfer service client.
sourcepub fn sandbox_store(&self) -> StoreClient<Channel>
pub fn sandbox_store(&self) -> StoreClient<Channel>
Sandbox store client.
sourcepub fn streaming(&self) -> StreamingClient<Channel>
pub fn streaming(&self) -> StreamingClient<Channel>
Streaming services client.
sourcepub fn sandbox_controller(&self) -> ControllerClient<Channel>
pub fn sandbox_controller(&self) -> ControllerClient<Channel>
Sandbox controller client.
sourcepub fn snapshots(&self) -> SnapshotsClient<Channel>
pub fn snapshots(&self) -> SnapshotsClient<Channel>
Snapshots service.
sourcepub fn namespaces(&self) -> NamespacesClient<Channel>
pub fn namespaces(&self) -> NamespacesClient<Channel>
Namespaces service.
sourcepub fn leases(&self) -> LeasesClient<Channel>
pub fn leases(&self) -> LeasesClient<Channel>
Leases service.
sourcepub fn introspection(&self) -> IntrospectionClient<Channel>
pub fn introspection(&self) -> IntrospectionClient<Channel>
Intropection service.
sourcepub fn images(&self) -> ImagesClient<Channel>
pub fn images(&self) -> ImagesClient<Channel>
Image service.
sourcepub fn events(&self) -> EventsClient<Channel>
pub fn events(&self) -> EventsClient<Channel>
Event service.
sourcepub fn diff(&self) -> DiffClient<Channel>
pub fn diff(&self) -> DiffClient<Channel>
Diff service.
sourcepub fn content(&self) -> ContentClient<Channel>
pub fn content(&self) -> ContentClient<Channel>
Content service.
sourcepub fn containers(&self) -> ContainersClient<Channel>
pub fn containers(&self) -> ContainersClient<Channel>
Container service.
Trait Implementations§
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request