You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/06/17 16:42:08 UTC
(opendal) branch main updated: feat(core): expose operator base service and context (#7788)
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 8a85dc888 feat(core): expose operator base service and context (#7788)
8a85dc888 is described below
commit 8a85dc888d45e046dfe1d1dc0a738507ff80d712
Author: Gergely Nagy <ng...@users.noreply.github.com>
AuthorDate: Wed Jun 17 18:42:03 2026 +0200
feat(core): expose operator base service and context (#7788)
Closes #7783.
---
core/core/src/types/operator/operator.rs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/core/core/src/types/operator/operator.rs b/core/core/src/types/operator/operator.rs
index f77b7424d..693f0efc7 100644
--- a/core/core/src/types/operator/operator.rs
+++ b/core/core/src/types/operator/operator.rs
@@ -213,6 +213,16 @@ impl Operator {
(srv, ctx)
}
+ /// Get the base `srv` that layers are applied to.
+ pub fn base_service(&self) -> &Servicer {
+ &self.base_srv
+ }
+
+ /// Get the base `ctx` that layers are applied to.
+ pub fn base_context(&self) -> &OperationContext {
+ &self.base_ctx
+ }
+
/// Get the composed `srv` used by the current operator.
pub fn service(&self) -> &Servicer {
&self.srv