Struct client::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Instance of a single client for an Aurae consumer.

Implementations§

source§

impl Client

source

pub async fn default() -> Result<Self, ClientError>

source

pub async fn new(__arg0: AuraeConfig) -> Result<Self, ClientError>

Create a new Client.

Note: A new client is required for every independent execution of this process.

source

pub async fn new_no_tls(socket: AuraeSocket) -> Result<Self, ClientError>

Create a new Client without TLS, remote server should also expect no TLS.

Note: A new client is required for every independent execution of this process.

Trait Implementations§

source§

impl CellServiceClient for Client

source§

fn allocate<'life0, 'async_trait>( &'life0 self, req: CellServiceAllocateRequest ) -> Pin<Box<dyn Future<Output = Result<Response<CellServiceAllocateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn free<'life0, 'async_trait>( &'life0 self, req: CellServiceFreeRequest ) -> Pin<Box<dyn Future<Output = Result<Response<CellServiceFreeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn start<'life0, 'async_trait>( &'life0 self, req: CellServiceStartRequest ) -> Pin<Box<dyn Future<Output = Result<Response<CellServiceStartResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn stop<'life0, 'async_trait>( &'life0 self, req: CellServiceStopRequest ) -> Pin<Box<dyn Future<Output = Result<Response<CellServiceStopResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list<'life0, 'async_trait>( &'life0 self, req: CellServiceListRequest ) -> Pin<Box<dyn Future<Output = Result<Response<CellServiceListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DiscoveryServiceClient for Client

source§

fn discover<'life0, 'async_trait>( &'life0 self, req: DiscoverRequest ) -> Pin<Box<dyn Future<Output = Result<Response<DiscoverResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl HealthClient for Client

source§

fn check<'life0, 'async_trait>( &'life0 self, req: HealthCheckRequest ) -> Pin<Box<dyn Future<Output = Result<Response<HealthCheckResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn watch<'life0, 'async_trait>( &'life0 self, req: HealthCheckRequest ) -> Pin<Box<dyn Future<Output = Result<Response<Streaming<HealthCheckResponse>>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl ImageServiceClient for Client

source§

fn list_images<'life0, 'async_trait>( &'life0 self, req: ListImagesRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ListImagesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn image_status<'life0, 'async_trait>( &'life0 self, req: ImageStatusRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ImageStatusResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn pull_image<'life0, 'async_trait>( &'life0 self, req: PullImageRequest ) -> Pin<Box<dyn Future<Output = Result<Response<PullImageResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn remove_image<'life0, 'async_trait>( &'life0 self, req: RemoveImageRequest ) -> Pin<Box<dyn Future<Output = Result<Response<RemoveImageResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn image_fs_info<'life0, 'async_trait>( &'life0 self, req: ImageFsInfoRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ImageFsInfoResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl ObserveServiceClient for Client

source§

fn get_aurae_daemon_log_stream<'life0, 'async_trait>( &'life0 self, req: GetAuraeDaemonLogStreamRequest ) -> Pin<Box<dyn Future<Output = Result<Response<Streaming<GetAuraeDaemonLogStreamResponse>>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn get_sub_process_stream<'life0, 'async_trait>( &'life0 self, req: GetSubProcessStreamRequest ) -> Pin<Box<dyn Future<Output = Result<Response<Streaming<GetSubProcessStreamResponse>>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn get_posix_signals_stream<'life0, 'async_trait>( &'life0 self, req: GetPosixSignalsStreamRequest ) -> Pin<Box<dyn Future<Output = Result<Response<Streaming<GetPosixSignalsStreamResponse>>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl RuntimeServiceClient for Client

source§

fn version<'life0, 'async_trait>( &'life0 self, req: VersionRequest ) -> Pin<Box<dyn Future<Output = Result<Response<VersionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn run_pod_sandbox<'life0, 'async_trait>( &'life0 self, req: RunPodSandboxRequest ) -> Pin<Box<dyn Future<Output = Result<Response<RunPodSandboxResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn stop_pod_sandbox<'life0, 'async_trait>( &'life0 self, req: StopPodSandboxRequest ) -> Pin<Box<dyn Future<Output = Result<Response<StopPodSandboxResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn remove_pod_sandbox<'life0, 'async_trait>( &'life0 self, req: RemovePodSandboxRequest ) -> Pin<Box<dyn Future<Output = Result<Response<RemovePodSandboxResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn pod_sandbox_status<'life0, 'async_trait>( &'life0 self, req: PodSandboxStatusRequest ) -> Pin<Box<dyn Future<Output = Result<Response<PodSandboxStatusResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_pod_sandbox<'life0, 'async_trait>( &'life0 self, req: ListPodSandboxRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ListPodSandboxResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn create_container<'life0, 'async_trait>( &'life0 self, req: CreateContainerRequest ) -> Pin<Box<dyn Future<Output = Result<Response<CreateContainerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn start_container<'life0, 'async_trait>( &'life0 self, req: StartContainerRequest ) -> Pin<Box<dyn Future<Output = Result<Response<StartContainerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn stop_container<'life0, 'async_trait>( &'life0 self, req: StopContainerRequest ) -> Pin<Box<dyn Future<Output = Result<Response<StopContainerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn remove_container<'life0, 'async_trait>( &'life0 self, req: RemoveContainerRequest ) -> Pin<Box<dyn Future<Output = Result<Response<RemoveContainerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_containers<'life0, 'async_trait>( &'life0 self, req: ListContainersRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ListContainersResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn container_status<'life0, 'async_trait>( &'life0 self, req: ContainerStatusRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ContainerStatusResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn update_container_resources<'life0, 'async_trait>( &'life0 self, req: UpdateContainerResourcesRequest ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateContainerResourcesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn reopen_container_log<'life0, 'async_trait>( &'life0 self, req: ReopenContainerLogRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ReopenContainerLogResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn exec_sync<'life0, 'async_trait>( &'life0 self, req: ExecSyncRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ExecSyncResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn exec<'life0, 'async_trait>( &'life0 self, req: ExecRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ExecResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn attach<'life0, 'async_trait>( &'life0 self, req: AttachRequest ) -> Pin<Box<dyn Future<Output = Result<Response<AttachResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn port_forward<'life0, 'async_trait>( &'life0 self, req: PortForwardRequest ) -> Pin<Box<dyn Future<Output = Result<Response<PortForwardResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn container_stats<'life0, 'async_trait>( &'life0 self, req: ContainerStatsRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ContainerStatsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_container_stats<'life0, 'async_trait>( &'life0 self, req: ListContainerStatsRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ListContainerStatsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn pod_sandbox_stats<'life0, 'async_trait>( &'life0 self, req: PodSandboxStatsRequest ) -> Pin<Box<dyn Future<Output = Result<Response<PodSandboxStatsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_pod_sandbox_stats<'life0, 'async_trait>( &'life0 self, req: ListPodSandboxStatsRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ListPodSandboxStatsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn update_runtime_config<'life0, 'async_trait>( &'life0 self, req: UpdateRuntimeConfigRequest ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateRuntimeConfigResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn status<'life0, 'async_trait>( &'life0 self, req: StatusRequest ) -> Pin<Box<dyn Future<Output = Result<Response<StatusResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn checkpoint_container<'life0, 'async_trait>( &'life0 self, req: CheckpointContainerRequest ) -> Pin<Box<dyn Future<Output = Result<Response<CheckpointContainerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn get_container_events<'life0, 'async_trait>( &'life0 self, req: GetEventsRequest ) -> Pin<Box<dyn Future<Output = Result<Response<Streaming<ContainerEventResponse>>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_metric_descriptors<'life0, 'async_trait>( &'life0 self, req: ListMetricDescriptorsRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ListMetricDescriptorsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_pod_sandbox_metrics<'life0, 'async_trait>( &'life0 self, req: ListPodSandboxMetricsRequest ) -> Pin<Box<dyn Future<Output = Result<Response<ListPodSandboxMetricsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl VmServiceClient for Client

source§

fn create<'life0, 'async_trait>( &'life0 self, req: VmServiceCreateRequest ) -> Pin<Box<dyn Future<Output = Result<Response<VmServiceCreateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn free<'life0, 'async_trait>( &'life0 self, req: VmServiceFreeRequest ) -> Pin<Box<dyn Future<Output = Result<Response<VmServiceFreeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn start<'life0, 'async_trait>( &'life0 self, req: VmServiceStartRequest ) -> Pin<Box<dyn Future<Output = Result<Response<VmServiceStartResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn stop<'life0, 'async_trait>( &'life0 self, req: VmServiceStopRequest ) -> Pin<Box<dyn Future<Output = Result<Response<VmServiceStopResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more