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 809b764725 docs: Hide HDFS Native Go snippets until a matching
companion ships (#9347)
809b764725 is described below
commit 809b7647259f4e595000415b0466be4687131fd4
Author: Xuanwo <[email protected]>
AuthorDate: Sun Nov 29 02:21:23 2026 +0800
docs: Hide HDFS Native Go snippets until a matching companion ships (#9347)
docs: hide the unpublished HDFS Native Go example
---
dev/src/generate/docs.rs | 2 +-
website/data/services.json | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/dev/src/generate/docs.rs b/dev/src/generate/docs.rs
index ae57976b70..0b28b2478a 100644
--- a/dev/src/generate/docs.rs
+++ b/dev/src/generate/docs.rs
@@ -207,7 +207,7 @@ pub fn generate(workspace_dir: PathBuf, services: Services)
-> Result<()> {
None if binding.id == "go" => {
let s3_preset = scheme != "s3"
&& service.source_dir ==
workspace_dir.join("core/services/s3/src");
- !s3_preset && scheme != "hf3fs"
+ !s3_preset && !matches!(scheme.as_str(), "hdfs-native" |
"hf3fs")
}
None => true,
Some(set) => set.contains(&scheme),
diff --git a/website/data/services.json b/website/data/services.json
index c80e1be340..0e08defe14 100644
--- a/website/data/services.json
+++ b/website/data/services.json
@@ -3123,12 +3123,6 @@
"language": "javascript",
"minimal": "import { Operator } from \"opendal\";\n\nconst operator
= new Operator(\"hdfs-native\", {\n});",
"full": "import { Operator } from \"opendal\";\n\nconst operator =
new Operator(\"hdfs-native\", {\n // work dir of this backend\n // root:
\"...\",\n\n // name_node of this backend\n // name_node: \"...\",\n\n //
other options for hdfs client\n // options:
\"{\\\"key\\\":\\\"value\\\"}\",\n});"
- },
- {
- "binding": "go",
- "language": "go",
- "minimal": "import
(\n\t\"github.com/apache/opendal-go-services/hdfs-native\"\n\topendal
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err :=
opendal.NewOperator(hdfs-native.Scheme, opendal.OperatorOptions{\n})",
- "full": "import
(\n\t\"github.com/apache/opendal-go-services/hdfs-native\"\n\topendal
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err :=
opendal.NewOperator(hdfs-native.Scheme, opendal.OperatorOptions{\n\t// work dir
of this backend\n\t// \"root\": \"...\",\n\n\t// name_node of this
backend\n\t// \"name_node\": \"...\",\n\n\t// other options for hdfs
client\n\t// \"options\": \"{\\\"key\\\":\\\"value\\\"}\",\n})"
}
]
},