You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by gi...@apache.org on 2023/04/11 09:38:11 UTC
[incubator-opendal] branch gh-pages updated: deploy: 5721bbd02b5d5cea85ddbd35c1fbd8fb6d1ab2fe
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new d7d0fe44 deploy: 5721bbd02b5d5cea85ddbd35c1fbd8fb6d1ab2fe
d7d0fe44 is described below
commit d7d0fe44044d29d7aeb2e9f9106e3600c2e8a8ff
Author: Xuanwo <Xu...@users.noreply.github.com>
AuthorDate: Tue Apr 11 09:38:06 2023 +0000
deploy: 5721bbd02b5d5cea85ddbd35c1fbd8fb6d1ab2fe
---
404.html | 4 +-
.../{1db64337.afd97587.js => 1db64337.e795c50e.js} | 2 +-
...e~main.77af7b52.js => runtime~main.9eb89a2d.js} | 2 +-
blog/archive/index.html | 4 +-
blog/index.html | 4 +-
blog/opendal-entered-apache-incubator/index.html | 4 +-
blog/tags/announcement/index.html | 4 +-
blog/tags/index.html | 4 +-
docs/nodejs/classes/BlockingLister.html | 4 +-
docs/nodejs/classes/Entry.html | 4 +-
docs/nodejs/classes/Lister.html | 4 +-
docs/nodejs/classes/Metadata.html | 18 +-
docs/nodejs/classes/Operator.html | 56 +--
docs/nodejs/interfaces/PresignedRequest.html | 8 +-
docs/overview/index.html | 6 +-
docs/python/opendal.html | 50 +-
docs/python/search.js | 2 +-
docs/rust/opendal/services/struct.Gcs.html | 22 +-
docs/rust/opendal/trait.Builder.html | 2 +-
docs/rust/source-files.js | 2 +-
docs/rust/src/opendal/services/gcs/backend.rs.html | 480 +++----------------
docs/rust/src/opendal/services/gcs/core.rs.html | 526 +++++++++++++++++++++
docs/rust/src/opendal/services/gcs/mod.rs.html | 2 +
docs/rust/src/opendal/services/gcs/pager.rs.html | 30 +-
docs/rust/src/opendal/services/gcs/writer.rs.html | 24 +-
index.html | 4 +-
26 files changed, 708 insertions(+), 564 deletions(-)
diff --git a/404.html b/404.html
index 884c5abe..68ecf815 100644
--- a/404.html
+++ b/404.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">Page Not Found | Apache OpenDAL</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/404.html"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_tag" content="default"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/assets/js/1db64337.afd97587.js b/assets/js/1db64337.e795c50e.js
similarity index 89%
rename from assets/js/1db64337.afd97587.js
rename to assets/js/1db64337.e795c50e.js
index 08a88fcc..1eadbadd 100644
--- a/assets/js/1db64337.afd97587.js
+++ b/assets/js/1db64337.e795c50e.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkopendal_website=self.webpackChunkopendal_website||[]).push([[372],{6777:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>n,contentTitle:()=>a,default:()=>l,frontMatter:()=>s,metadata:()=>d,toc:()=>p});var o=i(7462),r=(i(7294),i(3905));const s={sidebar_position:1,title:"Overview"},a=void 0,d={unversionedId:"overview",id:"overview",title:"Overview",description:"",source:"@site/docs/overview.md",sourceDirName:".",slug:"/overview",permalink:"/docs/overview",draft:!1,editUrl: [...]
\ No newline at end of file
+"use strict";(self.webpackChunkopendal_website=self.webpackChunkopendal_website||[]).push([[372],{6777:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>n,contentTitle:()=>a,default:()=>l,frontMatter:()=>s,metadata:()=>d,toc:()=>p});var o=i(7462),r=(i(7294),i(3905));const s={sidebar_position:1,title:"Overview"},a=void 0,d={unversionedId:"overview",id:"overview",title:"Overview",description:"",source:"@site/docs/overview.md",sourceDirName:".",slug:"/overview",permalink:"/docs/overview",draft:!1,editUrl: [...]
\ No newline at end of file
diff --git a/assets/js/runtime~main.77af7b52.js b/assets/js/runtime~main.9eb89a2d.js
similarity index 97%
rename from assets/js/runtime~main.77af7b52.js
rename to assets/js/runtime~main.9eb89a2d.js
index deb0888c..1c9ca8ca 100644
--- a/assets/js/runtime~main.77af7b52.js
+++ b/assets/js/runtime~main.9eb89a2d.js
@@ -1 +1 @@
-(()=>{"use strict";var e,t,r,o,a,n={},c={};function f(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return n[e].call(r.exports,r,r.exports,f),r.exports}f.m=n,e=[],f.O=(t,r,o,a)=>{if(!r){var n=1/0;for(b=0;b<e.length;b++){r=e[b][0],o=e[b][1],a=e[b][2];for(var c=!0,i=0;i<r.length;i++)(!1&a||n>=a)&&Object.keys(f.O).every((e=>f.O[e](r[i])))?r.splice(i--,1):(c=!1,a<n&&(n=a));if(c){e.splice(b--,1);var d=o();void 0!==d&&(t=d)}}return t}a=a||0;for(var b=e.length;b>0&&e[b-1] [...]
\ No newline at end of file
+(()=>{"use strict";var e,t,r,o,a,n={},c={};function f(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return n[e].call(r.exports,r,r.exports,f),r.exports}f.m=n,e=[],f.O=(t,r,o,a)=>{if(!r){var n=1/0;for(b=0;b<e.length;b++){r=e[b][0],o=e[b][1],a=e[b][2];for(var c=!0,i=0;i<r.length;i++)(!1&a||n>=a)&&Object.keys(f.O).every((e=>f.O[e](r[i])))?r.splice(i--,1):(c=!1,a<n&&(n=a));if(c){e.splice(b--,1);var d=o();void 0!==d&&(t=d)}}return t}a=a||0;for(var b=e.length;b>0&&e[b-1] [...]
\ No newline at end of file
diff --git a/blog/archive/index.html b/blog/archive/index.html
index 3575433a..6cddeb01 100644
--- a/blog/archive/index.html
+++ b/blog/archive/index.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">Archive | Apache OpenDAL</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/blog/archive"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_tag" content="default"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="t [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/blog/index.html b/blog/index.html
index b74f4fdb..eef2ef99 100644
--- a/blog/index.html
+++ b/blog/index.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">Blog | Apache OpenDAL</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/blog"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" property="og:title" content="Blog | Apache OpenDAL"><meta data-rh=" [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/blog/opendal-entered-apache-incubator/index.html b/blog/opendal-entered-apache-incubator/index.html
index 0af1990a..153b480b 100644
--- a/blog/opendal-entered-apache-incubator/index.html
+++ b/blog/opendal-entered-apache-incubator/index.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">Way to Go: OpenDAL successfully entered Apache Incubator | Apache OpenDAL</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/blog/opendal-entered-apache-incubator"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_tag" content="default"><m [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/blog/tags/announcement/index.html b/blog/tags/announcement/index.html
index f45e847a..9c72269e 100644
--- a/blog/tags/announcement/index.html
+++ b/blog/tags/announcement/index.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">One post tagged with "announcement" | Apache OpenDAL</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/blog/tags/announcement"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" property [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/blog/tags/index.html b/blog/tags/index.html
index 8ad6e520..2a4580be 100644
--- a/blog/tags/index.html
+++ b/blog/tags/index.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">Tags | Apache OpenDAL</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/blog/tags"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" property="og:title" content="Tags | Apache OpenDAL"><meta data [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/docs/nodejs/classes/BlockingLister.html b/docs/nodejs/classes/BlockingLister.html
index 3d246e8f..0544614a 100644
--- a/docs/nodejs/classes/BlockingLister.html
+++ b/docs/nodejs/classes/BlockingLister.html
@@ -20,7 +20,7 @@
<ul class="tsd-hierarchy">
<li><span class="target">BlockingLister</span></li></ul></section><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L413">index.d.ts:413</a></li></ul></aside>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L413">index.d.ts:413</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -51,7 +51,7 @@
<li class="tsd-description">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Entry.html" class="tsd-signature-type" data-tsd-kind="Class">Entry</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L414">index.d.ts:414</a></li></ul></aside></li></ul></section></section></div>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L414">index.d.ts:414</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
diff --git a/docs/nodejs/classes/Entry.html b/docs/nodejs/classes/Entry.html
index 50c7249f..751f911d 100644
--- a/docs/nodejs/classes/Entry.html
+++ b/docs/nodejs/classes/Entry.html
@@ -20,7 +20,7 @@
<ul class="tsd-hierarchy">
<li><span class="target">Entry</span></li></ul></section><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L380">index.d.ts:380</a></li></ul></aside>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L380">index.d.ts:380</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -53,7 +53,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L382">index.d.ts:382</a></li></ul></aside></li></ul></section></section></div>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L382">index.d.ts:382</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
diff --git a/docs/nodejs/classes/Lister.html b/docs/nodejs/classes/Lister.html
index 67b51553..93cab266 100644
--- a/docs/nodejs/classes/Lister.html
+++ b/docs/nodejs/classes/Lister.html
@@ -20,7 +20,7 @@
<ul class="tsd-hierarchy">
<li><span class="target">Lister</span></li></ul></section><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L402">index.d.ts:402</a></li></ul></aside>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L402">index.d.ts:402</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -61,7 +61,7 @@ thing internally.</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Entry.html" class="tsd-signature-type" data-tsd-kind="Class">Entry</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L411">index.d.ts:411</a></li></ul></aside></li></ul></section></section></div>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L411">index.d.ts:411</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
diff --git a/docs/nodejs/classes/Metadata.html b/docs/nodejs/classes/Metadata.html
index 98f91064..aa2fcef8 100644
--- a/docs/nodejs/classes/Metadata.html
+++ b/docs/nodejs/classes/Metadata.html
@@ -20,7 +20,7 @@
<ul class="tsd-hierarchy">
<li><span class="target">Metadata</span></li></ul></section><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L384">index.d.ts:384</a></li></ul></aside>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L384">index.d.ts:384</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -63,7 +63,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L390">index.d.ts:390</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L390">index.d.ts:390</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="contentLength" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>content<wbr/>Length</span><a href="#contentLength" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
@@ -73,7 +73,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">bigint</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L392">index.d.ts:392</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L392">index.d.ts:392</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="contentMd5" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>content<wbr/>Md5</span><a href="#contentMd5" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
@@ -83,7 +83,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L394">index.d.ts:394</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L394">index.d.ts:394</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="contentType" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>content<wbr/>Type</span><a href="#contentType" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
@@ -93,7 +93,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L396">index.d.ts:396</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L396">index.d.ts:396</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="etag" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>etag</span><a href="#etag" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
@@ -103,7 +103,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L398">index.d.ts:398</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L398">index.d.ts:398</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="lastModified" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>last<wbr/>Modified</span><a href="#lastModified" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
@@ -113,7 +113,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L400">index.d.ts:400</a></li></ul></aside></li></ul></section></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L400">index.d.ts:400</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isDirectory" class="tsd-anchor"></a>
@@ -125,7 +125,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L386">index.d.ts:386</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L386">index.d.ts:386</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isFile" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>is<wbr/>File</span><a href="#isFile" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -135,7 +135,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L388">index.d.ts:388</a></li></ul></aside></li></ul></section></section></div>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L388">index.d.ts:388</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
diff --git a/docs/nodejs/classes/Operator.html b/docs/nodejs/classes/Operator.html
index a418ce39..99aabc68 100644
--- a/docs/nodejs/classes/Operator.html
+++ b/docs/nodejs/classes/Operator.html
@@ -20,7 +20,7 @@
<ul class="tsd-hierarchy">
<li><span class="target">Operator</span></li></ul></section><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L33">index.d.ts:33</a></li></ul></aside>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L33">index.d.ts:33</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -75,7 +75,7 @@
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="Operator.html" class="tsd-signature-type" data-tsd-kind="Class">Operator</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L34">index.d.ts:34</a></li></ul></aside></li></ul></section></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L34">index.d.ts:34</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="check" class="tsd-anchor"></a>
@@ -94,7 +94,7 @@
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L77">index.d.ts:77</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L77">index.d.ts:77</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="copy" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>copy</span><a href="#copy" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -117,7 +117,7 @@
<h5>to: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L162">index.d.ts:162</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L162">index.d.ts:162</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="copySync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>copy<wbr/>Sync</span><a href="#copySync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -140,7 +140,7 @@
<h5>to: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L171">index.d.ts:171</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L171">index.d.ts:171</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createDir" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Dir</span><a href="#createDir" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -161,7 +161,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L104">index.d.ts:104</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L104">index.d.ts:104</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createDirSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Dir<wbr/>Sync</span><a href="#createDirSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -182,7 +182,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L113">index.d.ts:113</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L113">index.d.ts:113</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="delete" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>delete</span><a href="#delete" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -208,7 +208,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L251">index.d.ts:251</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L251">index.d.ts:251</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="deleteSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>delete<wbr/>Sync</span><a href="#deleteSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -229,7 +229,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L260">index.d.ts:260</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L260">index.d.ts:260</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isExist" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>is<wbr/>Exist</span><a href="#isExist" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -250,7 +250,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L86">index.d.ts:86</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L86">index.d.ts:86</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isExistSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>is<wbr/>Exist<wbr/>Sync</span><a href="#isExistSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -271,7 +271,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L95">index.d.ts:95</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L95">index.d.ts:95</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="list" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>list</span><a href="#list" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -294,7 +294,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Lister.html" class="tsd-signature-type" data-tsd-kind="Class">Lister</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L307">index.d.ts:307</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L307">index.d.ts:307</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="listSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>list<wbr/>Sync</span><a href="#listSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -317,7 +317,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="BlockingLister.html" class="tsd-signature-type" data-tsd-kind="Class">BlockingLister</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L330">index.d.ts:330</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L330">index.d.ts:330</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="presignRead" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>presign<wbr/>Read</span><a href="#presignRead" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -341,7 +341,7 @@
<h5>expires: <span class="tsd-signature-type">number</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="../interfaces/PresignedRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">PresignedRequest</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L346">index.d.ts:346</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L346">index.d.ts:346</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="presignStat" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>presign<wbr/>Stat</span><a href="#presignStat" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -365,7 +365,7 @@
<h5>expires: <span class="tsd-signature-type">number</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="../interfaces/PresignedRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">PresignedRequest</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L378">index.d.ts:378</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L378">index.d.ts:378</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="presignWrite" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>presign<wbr/>Write</span><a href="#presignWrite" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -389,7 +389,7 @@
<h5>expires: <span class="tsd-signature-type">number</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="../interfaces/PresignedRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">PresignedRequest</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L362">index.d.ts:362</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L362">index.d.ts:362</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="read" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>read</span><a href="#read" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -410,7 +410,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L122">index.d.ts:122</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L122">index.d.ts:122</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="readSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>read<wbr/>Sync</span><a href="#readSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -431,7 +431,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Buffer</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L131">index.d.ts:131</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L131">index.d.ts:131</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="remove" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>remove</span><a href="#remove" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -457,7 +457,7 @@
<h5>paths: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L272">index.d.ts:272</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L272">index.d.ts:272</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="removeAll" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>remove<wbr/>All</span><a href="#removeAll" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -483,7 +483,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L284">index.d.ts:284</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L284">index.d.ts:284</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="rename" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>rename</span><a href="#rename" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -507,7 +507,7 @@
<h5>to: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L182">index.d.ts:182</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L182">index.d.ts:182</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="renameSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>rename<wbr/>Sync</span><a href="#renameSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -531,7 +531,7 @@
<h5>to: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L193">index.d.ts:193</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L193">index.d.ts:193</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="scan" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>scan</span><a href="#scan" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -554,7 +554,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Lister.html" class="tsd-signature-type" data-tsd-kind="Class">Lister</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L216">index.d.ts:216</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L216">index.d.ts:216</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="scanSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>scan<wbr/>Sync</span><a href="#scanSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -577,7 +577,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="BlockingLister.html" class="tsd-signature-type" data-tsd-kind="Class">BlockingLister</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L239">index.d.ts:239</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L239">index.d.ts:239</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stat" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>stat</span><a href="#stat" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -608,7 +608,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Metadata.html" class="tsd-signature-type" data-tsd-kind="Class">Metadata</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L54">index.d.ts:54</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L54">index.d.ts:54</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="statSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>stat<wbr/>Sync</span><a href="#statSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -629,7 +629,7 @@
<h5>path: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="Metadata.html" class="tsd-signature-type" data-tsd-kind="Class">Metadata</a></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L66">index.d.ts:66</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L66">index.d.ts:66</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="write" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>write</span><a href="#write" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -652,7 +652,7 @@
<h5>content: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Buffer</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L142">index.d.ts:142</a></li></ul></aside></li></ul></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L142">index.d.ts:142</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="writeSync" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>write<wbr/>Sync</span><a href="#writeSync" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -675,7 +675,7 @@
<h5>content: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Buffer</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L153">index.d.ts:153</a></li></ul></aside></li></ul></section></section></div>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L153">index.d.ts:153</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
diff --git a/docs/nodejs/interfaces/PresignedRequest.html b/docs/nodejs/interfaces/PresignedRequest.html
index bf948c13..143ab5b4 100644
--- a/docs/nodejs/interfaces/PresignedRequest.html
+++ b/docs/nodejs/interfaces/PresignedRequest.html
@@ -20,7 +20,7 @@
<ul class="tsd-hierarchy">
<li><span class="target">PresignedRequest</span></li></ul></section><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L25">index.d.ts:25</a></li></ul></aside>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L25">index.d.ts:25</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -40,21 +40,21 @@
<div class="tsd-comment tsd-typography"><p>HTTP headers of this request.</p>
</div><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L31">index.d.ts:31</a></li></ul></aside></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L31">index.d.ts:31</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="method" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>method</span><a href="#method" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">method<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<div class="tsd-comment tsd-typography"><p>HTTP method of this request.</p>
</div><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L27">index.d.ts:27</a></li></ul></aside></section>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L27">index.d.ts:27</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="url" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>url</span><a href="#url" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<div class="tsd-comment tsd-typography"><p>URL of this request.</p>
</div><aside class="tsd-sources">
<ul>
-<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/ada9062/bindings/nodejs/index.d.ts#L29">index.d.ts:29</a></li></ul></aside></section></section></div>
+<li>Defined in <a href="https://github.com/apache/incubator-opendal/blob/5721bbd/bindings/nodejs/index.d.ts#L29">index.d.ts:29</a></li></ul></aside></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
diff --git a/docs/overview/index.html b/docs/overview/index.html
index 8b9aa2fa..e830c4eb 100644
--- a/docs/overview/index.html
+++ b/docs/overview/index.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">Overview | Apache OpenDAL</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/docs/overview"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
-<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="roun [...]
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/docs/python/opendal.html b/docs/python/opendal.html
index a72a7e00..7fd1e2d7 100644
--- a/docs/python/opendal.html
+++ b/docs/python/opendal.html
@@ -156,19 +156,19 @@
<a class="class" href="#Metadata">Metadata</a>
<ul class="memberlist">
<li>
- <a class="variable" href="#Metadata.mode">mode</a>
+ <a class="variable" href="#Metadata.content_md5">content_md5</a>
</li>
<li>
- <a class="variable" href="#Metadata.content_length">content_length</a>
+ <a class="variable" href="#Metadata.etag">etag</a>
</li>
<li>
- <a class="variable" href="#Metadata.content_md5">content_md5</a>
+ <a class="variable" href="#Metadata.mode">mode</a>
</li>
<li>
- <a class="variable" href="#Metadata.content_type">content_type</a>
+ <a class="variable" href="#Metadata.content_length">content_length</a>
</li>
<li>
- <a class="variable" href="#Metadata.etag">etag</a>
+ <a class="variable" href="#Metadata.content_type">content_type</a>
</li>
</ul>
@@ -852,67 +852,67 @@ The default value for whence is <code>SEEK_SET</code>. Values for <code>whence</
- <div id="Metadata.mode" class="classattr">
+ <div id="Metadata.content_md5" class="classattr">
<div class="attr variable">
- <span class="name">mode</span><span class="annotation">: <a href="#EntryMode">opendal.EntryMode</a></span>
+ <span class="name">content_md5</span><span class="annotation">: Optional[str]</span>
</div>
- <a class="headerlink" href="#Metadata.mode"></a>
+ <a class="headerlink" href="#Metadata.content_md5"></a>
- <div class="docstring"><p>mode represent this entry's mode.</p>
+ <div class="docstring"><p>Content MD5 of this entry.</p>
</div>
</div>
- <div id="Metadata.content_length" class="classattr">
+ <div id="Metadata.etag" class="classattr">
<div class="attr variable">
- <span class="name">content_length</span><span class="annotation">: int</span>
+ <span class="name">etag</span><span class="annotation">: Optional[str]</span>
</div>
- <a class="headerlink" href="#Metadata.content_length"></a>
+ <a class="headerlink" href="#Metadata.etag"></a>
- <div class="docstring"><p>Content length of this entry.</p>
+ <div class="docstring"><p>ETag of this entry.</p>
</div>
</div>
- <div id="Metadata.content_md5" class="classattr">
+ <div id="Metadata.mode" class="classattr">
<div class="attr variable">
- <span class="name">content_md5</span><span class="annotation">: Optional[str]</span>
+ <span class="name">mode</span><span class="annotation">: <a href="#EntryMode">opendal.EntryMode</a></span>
</div>
- <a class="headerlink" href="#Metadata.content_md5"></a>
+ <a class="headerlink" href="#Metadata.mode"></a>
- <div class="docstring"><p>Content MD5 of this entry.</p>
+ <div class="docstring"><p>mode represent this entry's mode.</p>
</div>
</div>
- <div id="Metadata.content_type" class="classattr">
+ <div id="Metadata.content_length" class="classattr">
<div class="attr variable">
- <span class="name">content_type</span><span class="annotation">: Optional[str]</span>
+ <span class="name">content_length</span><span class="annotation">: int</span>
</div>
- <a class="headerlink" href="#Metadata.content_type"></a>
+ <a class="headerlink" href="#Metadata.content_length"></a>
- <div class="docstring"><p>Content Type of this entry.</p>
+ <div class="docstring"><p>Content length of this entry.</p>
</div>
</div>
- <div id="Metadata.etag" class="classattr">
+ <div id="Metadata.content_type" class="classattr">
<div class="attr variable">
- <span class="name">etag</span><span class="annotation">: Optional[str]</span>
+ <span class="name">content_type</span><span class="annotation">: Optional[str]</span>
</div>
- <a class="headerlink" href="#Metadata.etag"></a>
+ <a class="headerlink" href="#Metadata.content_type"></a>
- <div class="docstring"><p>ETag of this entry.</p>
+ <div class="docstring"><p>Content Type of this entry.</p>
</div>
diff --git a/docs/python/search.js b/docs/python/search.js
index 78d5a5d6..6eb262da 100644
--- a/docs/python/search.js
+++ b/docs/python/search.js
@@ -1,6 +1,6 @@
window.pdocSearch = (function(){
/** elasticlunr - http://weixsong.github.io * Copyright (C) 2017 Oliver Nightingale * Copyright (C) 2017 Wei Song * MIT Licensed */!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.wa [...]
- /** pdoc search index */const docs = {"version": "0.9.5", "fields": ["qualname", "fullname", "annotation", "default_value", "signature", "bases", "doc"], "ref": "fullname", "documentStore": {"docs": {"opendal": {"fullname": "opendal", "modulename": "opendal", "kind": "module", "doc": "<p>OpenDAL Python binding</p>\n\n<h2 id=\"installation\">Installation</h2>\n\n<div class=\"pdoc-code codehilite\">\n<pre><span></span><code>pip<span class=\"w\"> </span>install<span class=\"w\"> </span> [...]
+ /** pdoc search index */const docs = {"version": "0.9.5", "fields": ["qualname", "fullname", "annotation", "default_value", "signature", "bases", "doc"], "ref": "fullname", "documentStore": {"docs": {"opendal": {"fullname": "opendal", "modulename": "opendal", "kind": "module", "doc": "<p>OpenDAL Python binding</p>\n\n<h2 id=\"installation\">Installation</h2>\n\n<div class=\"pdoc-code codehilite\">\n<pre><span></span><code>pip<span class=\"w\"> </span>install<span class=\"w\"> </span> [...]
// mirrored in build-search-index.js (part 1)
// Also split on html tags. this is a cheap heuristic, but good enough.
diff --git a/docs/rust/opendal/services/struct.Gcs.html b/docs/rust/opendal/services/struct.Gcs.html
index 505e10ed..aef426f0 100644
--- a/docs/rust/opendal/services/struct.Gcs.html
+++ b/docs/rust/opendal/services/struct.Gcs.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Google Cloud Storage service."><meta name="keywords" content="rust, rustlang, rust-lang, Gcs"><title>Gcs in opendal::services - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2"><link rel="pre [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Google Cloud Storage service."><meta name="keywords" content="rust, rustlang, rust-lang, Gcs"><title>Gcs in opendal::services - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2"><link rel="pre [...]
<h2 id="capabilities"><a href="#capabilities">Capabilities</a></h2>
<p>This service can be used to:</p>
<ul>
@@ -46,9 +46,9 @@ blocking</li>
<span class="kw">let </span>op: Operator = Operator::new(builder)<span class="question-mark">?</span>.finish();
<span class="prelude-val">Ok</span>(())
}</code></pre></div>
-</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-GcsBuilder" class="impl has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#120-215">source</a><a href="#impl-GcsBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Gcs [...]
-</div></details><details class="toggle method-toggle" open><summary><section id="method.bucket" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#131-134">source</a><h4 class="code-header">pub fn <a href="#method.bucket" class="fn">bucket</a>(&mut self, bucket: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.68.2/std [...]
-</div></details><details class="toggle method-toggle" open><summary><section id="method.scope" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#147-152">source</a><h4 class="code-header">pub fn <a href="#method.scope" class="fn">scope</a>(&mut self, scope: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/pri [...]
+</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-GcsBuilder" class="impl has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#117-212">source</a><a href="#impl-GcsBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Gcs [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.bucket" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#128-131">source</a><h4 class="code-header">pub fn <a href="#method.bucket" class="fn">bucket</a>(&mut self, bucket: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.68.2/std [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.scope" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#144-149">source</a><h4 class="code-header">pub fn <a href="#method.scope" class="fn">scope</a>(&mut self, scope: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/pri [...]
<p>If not set, we will use <code>https://www.googleapis.com/auth/devstorage.read_write</code>.</p>
<h5 id="valid-scope-examples"><a href="#valid-scope-examples">Valid scope examples</a></h5>
<ul>
@@ -57,17 +57,17 @@ blocking</li>
<li>full-control: <code>https://www.googleapis.com/auth/devstorage.full_control</code></li>
</ul>
<p>Reference: <a href="https://cloud.google.com/storage/docs/authentication">Cloud Storage authentication</a></p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.service_account" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#158-163">source</a><h4 class="code-header">pub fn <a href="#method.service_account" class="fn">service_account</a>(&mut self, service_account: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href=" [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.service_account" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#155-160">source</a><h4 class="code-header">pub fn <a href="#method.service_account" class="fn">service_account</a>(&mut self, service_account: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href=" [...]
<p>service account will be used for fetch token from vm metadata.
If not set, we will try to fetch with <code>default</code> service account.</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.endpoint" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#166-171">source</a><h4 class="code-header">pub fn <a href="#method.endpoint" class="fn">endpoint</a>(&mut self, endpoint: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1. [...]
-</div></details><details class="toggle method-toggle" open><summary><section id="method.credential" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#174-179">source</a><h4 class="code-header">pub fn <a href="#method.credential" class="fn">credential</a>(&mut self, credential: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lan [...]
-</div></details><details class="toggle method-toggle" open><summary><section id="method.credential_path" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#182-187">source</a><h4 class="code-header">pub fn <a href="#method.credential_path" class="fn">credential_path</a>(&mut self, path: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc [...]
-</div></details><details class="toggle method-toggle" open><summary><section id="method.http_client" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#195-198">source</a><h4 class="code-header">pub fn <a href="#method.http_client" class="fn">http_client</a>(&mut self, client: <a class="struct" href="../raw/struct.HttpClient.html" title="struct opendal::raw::HttpClient">HttpClient</a>) -> <a class="primitive" href="https:// [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.endpoint" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#163-168">source</a><h4 class="code-header">pub fn <a href="#method.endpoint" class="fn">endpoint</a>(&mut self, endpoint: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1. [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.credential" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#171-176">source</a><h4 class="code-header">pub fn <a href="#method.credential" class="fn">credential</a>(&mut self, credential: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lan [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.credential_path" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#179-184">source</a><h4 class="code-header">pub fn <a href="#method.credential_path" class="fn">credential_path</a>(&mut self, path: &<a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.http_client" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#192-195">source</a><h4 class="code-header">pub fn <a href="#method.http_client" class="fn">http_client</a>(&mut self, client: <a class="struct" href="../raw/struct.HttpClient.html" title="struct opendal::raw::HttpClient">HttpClient</a>) -> <a class="primitive" href="https:// [...]
<h5 id="notes"><a href="#notes">Notes</a></h5>
<p>This API is part of OpenDAL’s Raw API. <code>HttpClient</code> could be changed
during minor updates.</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.signer" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#211-214">source</a><h4 class="code-header">pub fn <a href="#method.signer" class="fn">signer</a>(&mut self, signer: GoogleSigner) -> <a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.reference.html">&mut </a>Self</h4></section></summary><div class="doc [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.signer" class="method has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#208-211">source</a><h4 class="code-header">pub fn <a href="#method.signer" class="fn">signer</a>(&mut self, signer: GoogleSigner) -> <a class="primitive" href="https://doc.rust-lang.org/1.68.2/std/primitive.reference.html">&mut </a>Self</h4></section></summary><div class="doc [...]
<p>If signer is specified, the following settings will not be used
any more:</p>
<ul>
@@ -77,7 +77,7 @@ any more:</p>
<li><code>credential_path</code></li>
</ul>
<p>PLEASE USE THIS API CAREFULLY.</p>
-</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Builder-for-GcsBuilder" class="impl has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#231-321">source</a><a href="#impl-Builder-for-GcsBuilder" class="anchor [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Builder-for-GcsBuilder" class="impl has-srclink"><a class="srclink rightside" href="../../src/opendal/services/gcs/backend.rs.html#228-315">source</a><a href="#impl-Builder-for-GcsBuilder" class="anchor [...]
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-GcsBuilder" class="impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><a href="#impl-Instrument-for-GcsBuilder" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html" title="trait tracing::instrum [...]
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a href= [...]
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-GcsBuilder" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.68.2/src/core/convert/mod.rs.html#717">source</a><a href="#impl-Into%3CU%3E-for-GcsBuilder" class="anchor">§</a><h3 clas [...]
diff --git a/docs/rust/opendal/trait.Builder.html b/docs/rust/opendal/trait.Builder.html
index 7afdeacd..a7bde48d 100644
--- a/docs/rust/opendal/trait.Builder.html
+++ b/docs/rust/opendal/trait.Builder.html
@@ -19,4 +19,4 @@
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.from_iter" class="method has-srclink"><a class="srclink rightside" href="../src/opendal/types/builder.rs.html#37-42">source</a><h4 class="code-header">fn <a href="#method.from_iter" class="fn">from_iter</a>(iter: impl <a class="trait" href="https://doc. [...]
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_env" class="method has-srclink"><a class="srclink rightside" href="../src/opendal/types/builder.rs.html#45-59">source</a><h4 class="code-header">fn <a href="#method.from_env" class="fn">from_env</a>() -> Self<span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.68.2/core/marker/trait.Sized.html" title="trait core::marker::Size [...]
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Builder-for-()" class="impl has-srclink"><a class="srclink rightside" href="../src/opendal/types/builder.rs.html#66-76">source</a><a href="#impl-Builder-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Builder.html" title="trait [...]
-</div><div class="impl-items"><section id="associatedconstant.SCHEME-1" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/opendal/types/builder.rs.html#67">source</a><a href="#associatedconstant.SCHEME-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.SCHEME" class="constant">SCHEME</a>: <a class="enum" href="enum.Scheme.html" title="enum opendal::Scheme">Scheme</a> = _</h4></section><section id="associatedtype.Acc [...]
\ No newline at end of file
+</div><div class="impl-items"><section id="associatedconstant.SCHEME-1" class="associatedconstant trait-impl has-srclink"><a class="srclink rightside" href="../src/opendal/types/builder.rs.html#67">source</a><a href="#associatedconstant.SCHEME-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.SCHEME" class="constant">SCHEME</a>: <a class="enum" href="enum.Scheme.html" title="enum opendal::Scheme">Scheme</a> = _</h4></section><section id="associatedtype.Acc [...]
\ No newline at end of file
diff --git a/docs/rust/source-files.js b/docs/rust/source-files.js
index eda577c6..f436b053 100644
--- a/docs/rust/source-files.js
+++ b/docs/rust/source-files.js
@@ -1,4 +1,4 @@
var sourcesIndex = JSON.parse('{\
-"opendal":["",[["docs",[["comparisons",[],["mod.rs"]],["internals",[],["accessor.rs","layer.rs","mod.rs"]],["rfcs",[],["mod.rs"]]],["concepts.rs","mod.rs"]],["layers",[],["chaos.rs","complete.rs","concurrent_limit.rs","error_context.rs","immutable_index.rs","logging.rs","metrics.rs","mod.rs","retry.rs","tracing.rs","type_eraser.rs"]],["raw",[["adapters",[["kv",[],["api.rs","backend.rs","mod.rs"]]],["mod.rs"]],["http_util",[],["body.rs","bytes_content_range.rs","bytes_range.rs","client.rs [...]
+"opendal":["",[["docs",[["comparisons",[],["mod.rs"]],["internals",[],["accessor.rs","layer.rs","mod.rs"]],["rfcs",[],["mod.rs"]]],["concepts.rs","mod.rs"]],["layers",[],["chaos.rs","complete.rs","concurrent_limit.rs","error_context.rs","immutable_index.rs","logging.rs","metrics.rs","mod.rs","retry.rs","tracing.rs","type_eraser.rs"]],["raw",[["adapters",[["kv",[],["api.rs","backend.rs","mod.rs"]]],["mod.rs"]],["http_util",[],["body.rs","bytes_content_range.rs","bytes_range.rs","client.rs [...]
}');
createSourceSidebar();
diff --git a/docs/rust/src/opendal/services/gcs/backend.rs.html b/docs/rust/src/opendal/services/gcs/backend.rs.html
index 96cfc1ef..e568d593 100644
--- a/docs/rust/src/opendal/services/gcs/backend.rs.html
+++ b/docs/rust/src/opendal/services/gcs/backend.rs.html
@@ -529,191 +529,6 @@
<a href="#529" id="529">529</a>
<a href="#530" id="530">530</a>
<a href="#531" id="531">531</a>
-<a href="#532" id="532">532</a>
-<a href="#533" id="533">533</a>
-<a href="#534" id="534">534</a>
-<a href="#535" id="535">535</a>
-<a href="#536" id="536">536</a>
-<a href="#537" id="537">537</a>
-<a href="#538" id="538">538</a>
-<a href="#539" id="539">539</a>
-<a href="#540" id="540">540</a>
-<a href="#541" id="541">541</a>
-<a href="#542" id="542">542</a>
-<a href="#543" id="543">543</a>
-<a href="#544" id="544">544</a>
-<a href="#545" id="545">545</a>
-<a href="#546" id="546">546</a>
-<a href="#547" id="547">547</a>
-<a href="#548" id="548">548</a>
-<a href="#549" id="549">549</a>
-<a href="#550" id="550">550</a>
-<a href="#551" id="551">551</a>
-<a href="#552" id="552">552</a>
-<a href="#553" id="553">553</a>
-<a href="#554" id="554">554</a>
-<a href="#555" id="555">555</a>
-<a href="#556" id="556">556</a>
-<a href="#557" id="557">557</a>
-<a href="#558" id="558">558</a>
-<a href="#559" id="559">559</a>
-<a href="#560" id="560">560</a>
-<a href="#561" id="561">561</a>
-<a href="#562" id="562">562</a>
-<a href="#563" id="563">563</a>
-<a href="#564" id="564">564</a>
-<a href="#565" id="565">565</a>
-<a href="#566" id="566">566</a>
-<a href="#567" id="567">567</a>
-<a href="#568" id="568">568</a>
-<a href="#569" id="569">569</a>
-<a href="#570" id="570">570</a>
-<a href="#571" id="571">571</a>
-<a href="#572" id="572">572</a>
-<a href="#573" id="573">573</a>
-<a href="#574" id="574">574</a>
-<a href="#575" id="575">575</a>
-<a href="#576" id="576">576</a>
-<a href="#577" id="577">577</a>
-<a href="#578" id="578">578</a>
-<a href="#579" id="579">579</a>
-<a href="#580" id="580">580</a>
-<a href="#581" id="581">581</a>
-<a href="#582" id="582">582</a>
-<a href="#583" id="583">583</a>
-<a href="#584" id="584">584</a>
-<a href="#585" id="585">585</a>
-<a href="#586" id="586">586</a>
-<a href="#587" id="587">587</a>
-<a href="#588" id="588">588</a>
-<a href="#589" id="589">589</a>
-<a href="#590" id="590">590</a>
-<a href="#591" id="591">591</a>
-<a href="#592" id="592">592</a>
-<a href="#593" id="593">593</a>
-<a href="#594" id="594">594</a>
-<a href="#595" id="595">595</a>
-<a href="#596" id="596">596</a>
-<a href="#597" id="597">597</a>
-<a href="#598" id="598">598</a>
-<a href="#599" id="599">599</a>
-<a href="#600" id="600">600</a>
-<a href="#601" id="601">601</a>
-<a href="#602" id="602">602</a>
-<a href="#603" id="603">603</a>
-<a href="#604" id="604">604</a>
-<a href="#605" id="605">605</a>
-<a href="#606" id="606">606</a>
-<a href="#607" id="607">607</a>
-<a href="#608" id="608">608</a>
-<a href="#609" id="609">609</a>
-<a href="#610" id="610">610</a>
-<a href="#611" id="611">611</a>
-<a href="#612" id="612">612</a>
-<a href="#613" id="613">613</a>
-<a href="#614" id="614">614</a>
-<a href="#615" id="615">615</a>
-<a href="#616" id="616">616</a>
-<a href="#617" id="617">617</a>
-<a href="#618" id="618">618</a>
-<a href="#619" id="619">619</a>
-<a href="#620" id="620">620</a>
-<a href="#621" id="621">621</a>
-<a href="#622" id="622">622</a>
-<a href="#623" id="623">623</a>
-<a href="#624" id="624">624</a>
-<a href="#625" id="625">625</a>
-<a href="#626" id="626">626</a>
-<a href="#627" id="627">627</a>
-<a href="#628" id="628">628</a>
-<a href="#629" id="629">629</a>
-<a href="#630" id="630">630</a>
-<a href="#631" id="631">631</a>
-<a href="#632" id="632">632</a>
-<a href="#633" id="633">633</a>
-<a href="#634" id="634">634</a>
-<a href="#635" id="635">635</a>
-<a href="#636" id="636">636</a>
-<a href="#637" id="637">637</a>
-<a href="#638" id="638">638</a>
-<a href="#639" id="639">639</a>
-<a href="#640" id="640">640</a>
-<a href="#641" id="641">641</a>
-<a href="#642" id="642">642</a>
-<a href="#643" id="643">643</a>
-<a href="#644" id="644">644</a>
-<a href="#645" id="645">645</a>
-<a href="#646" id="646">646</a>
-<a href="#647" id="647">647</a>
-<a href="#648" id="648">648</a>
-<a href="#649" id="649">649</a>
-<a href="#650" id="650">650</a>
-<a href="#651" id="651">651</a>
-<a href="#652" id="652">652</a>
-<a href="#653" id="653">653</a>
-<a href="#654" id="654">654</a>
-<a href="#655" id="655">655</a>
-<a href="#656" id="656">656</a>
-<a href="#657" id="657">657</a>
-<a href="#658" id="658">658</a>
-<a href="#659" id="659">659</a>
-<a href="#660" id="660">660</a>
-<a href="#661" id="661">661</a>
-<a href="#662" id="662">662</a>
-<a href="#663" id="663">663</a>
-<a href="#664" id="664">664</a>
-<a href="#665" id="665">665</a>
-<a href="#666" id="666">666</a>
-<a href="#667" id="667">667</a>
-<a href="#668" id="668">668</a>
-<a href="#669" id="669">669</a>
-<a href="#670" id="670">670</a>
-<a href="#671" id="671">671</a>
-<a href="#672" id="672">672</a>
-<a href="#673" id="673">673</a>
-<a href="#674" id="674">674</a>
-<a href="#675" id="675">675</a>
-<a href="#676" id="676">676</a>
-<a href="#677" id="677">677</a>
-<a href="#678" id="678">678</a>
-<a href="#679" id="679">679</a>
-<a href="#680" id="680">680</a>
-<a href="#681" id="681">681</a>
-<a href="#682" id="682">682</a>
-<a href="#683" id="683">683</a>
-<a href="#684" id="684">684</a>
-<a href="#685" id="685">685</a>
-<a href="#686" id="686">686</a>
-<a href="#687" id="687">687</a>
-<a href="#688" id="688">688</a>
-<a href="#689" id="689">689</a>
-<a href="#690" id="690">690</a>
-<a href="#691" id="691">691</a>
-<a href="#692" id="692">692</a>
-<a href="#693" id="693">693</a>
-<a href="#694" id="694">694</a>
-<a href="#695" id="695">695</a>
-<a href="#696" id="696">696</a>
-<a href="#697" id="697">697</a>
-<a href="#698" id="698">698</a>
-<a href="#699" id="699">699</a>
-<a href="#700" id="700">700</a>
-<a href="#701" id="701">701</a>
-<a href="#702" id="702">702</a>
-<a href="#703" id="703">703</a>
-<a href="#704" id="704">704</a>
-<a href="#705" id="705">705</a>
-<a href="#706" id="706">706</a>
-<a href="#707" id="707">707</a>
-<a href="#708" id="708">708</a>
-<a href="#709" id="709">709</a>
-<a href="#710" id="710">710</a>
-<a href="#711" id="711">711</a>
-<a href="#712" id="712">712</a>
-<a href="#713" id="713">713</a>
-<a href="#714" id="714">714</a>
-<a href="#715" id="715">715</a>
-<a href="#716" id="716">716</a>
</pre><pre class="rust"><code><span class="comment">// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -734,25 +549,22 @@
</span><span class="kw">use </span>std::collections::HashMap;
<span class="kw">use </span>std::fmt::Debug;
<span class="kw">use </span>std::fmt::Formatter;
-<span class="kw">use </span>std::fmt::Write;
<span class="kw">use </span>std::sync::Arc;
<span class="kw">use </span>async_trait::async_trait;
-<span class="kw">use </span>http::header::CONTENT_LENGTH;
-<span class="kw">use </span>http::header::CONTENT_TYPE;
-<span class="kw">use </span>http::Request;
-<span class="kw">use </span>http::Response;
<span class="kw">use </span>http::StatusCode;
<span class="kw">use </span>log::debug;
-<span class="kw">use </span>reqsign::GoogleSigner;
+<span class="kw">use </span>reqsign_0_9::GoogleCredentialLoader;
+<span class="kw">use </span>reqsign_0_9::GoogleSigner;
+<span class="kw">use </span>reqsign_0_9::GoogleTokenLoader;
<span class="kw">use </span>serde::Deserialize;
<span class="kw">use </span>serde_json;
<span class="kw">use </span>time::format_description::well_known::Rfc3339;
<span class="kw">use </span>time::OffsetDateTime;
+<span class="kw">use </span><span class="kw">super</span>::core::GcsCore;
<span class="kw">use </span><span class="kw">super</span>::error::parse_error;
<span class="kw">use </span><span class="kw">super</span>::pager::GcsPager;
-<span class="kw">use </span><span class="kw">super</span>::uri::percent_encode_path;
<span class="kw">use </span><span class="kw">super</span>::writer::GcsWriter;
<span class="kw">use </span><span class="kw">crate</span>::ops::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">crate</span>::raw::<span class="kw-2">*</span>;
@@ -991,45 +803,42 @@
</span>.endpoint
.clone()
.unwrap_or_else(|| DEFAULT_GCS_ENDPOINT.to_string());
-
<span class="macro">debug!</span>(<span class="string">"backend use endpoint: {endpoint}"</span>);
- <span class="kw">let </span>signer = <span class="kw">if let </span><span class="prelude-val">Some</span>(signer) = <span class="kw-2">&</span><span class="self">self</span>.signer {
- signer.clone()
+ <span class="kw">let </span><span class="kw-2">mut </span>cred_loader = GoogleCredentialLoader::default();
+ <span class="kw">if let </span><span class="prelude-val">Some</span>(cred) = <span class="kw-2">&</span><span class="self">self</span>.credential {
+ cred_loader = cred_loader.with_content(cred);
+ }
+ <span class="kw">if let </span><span class="prelude-val">Some</span>(cred) = <span class="kw-2">&</span><span class="self">self</span>.credential_path {
+ cred_loader = cred_loader.with_path(cred);
+ }
+
+ <span class="kw">let </span>scope = <span class="kw">if let </span><span class="prelude-val">Some</span>(scope) = <span class="kw-2">&</span><span class="self">self</span>.scope {
+ scope
} <span class="kw">else </span>{
- <span class="comment">// build signer
- </span><span class="kw">let </span><span class="kw-2">mut </span>signer_builder = GoogleSigner::builder();
- <span class="kw">if let </span><span class="prelude-val">Some</span>(scope) = <span class="kw-2">&</span><span class="self">self</span>.scope {
- signer_builder.scope(scope);
- } <span class="kw">else </span>{
- signer_builder.scope(DEFAULT_GCS_SCOPE);
- }
- <span class="kw">if let </span><span class="prelude-val">Some</span>(account) = <span class="kw-2">&</span><span class="self">self</span>.service_account {
- signer_builder.service_account(account);
- }
- <span class="kw">if let </span><span class="prelude-val">Some</span>(cred) = <span class="kw-2">&</span><span class="self">self</span>.credential {
- signer_builder.credential_content(cred);
- }
- <span class="kw">if let </span><span class="prelude-val">Some</span>(cred) = <span class="kw-2">&</span><span class="self">self</span>.credential_path {
- signer_builder.credential_path(cred);
- }
- <span class="kw">let </span>signer = signer_builder.build().map_err(|e| {
- Error::new(ErrorKind::ConfigInvalid, <span class="string">"build GoogleSigner"</span>)
- .with_operation(<span class="string">"Builder::build"</span>)
- .with_context(<span class="string">"service"</span>, Scheme::Gcs)
- .with_context(<span class="string">"bucket"</span>, bucket)
- .with_context(<span class="string">"endpoint"</span>, <span class="kw-2">&</span>endpoint)
- .set_source(e)
- })<span class="question-mark">?</span>;
- Arc::new(signer)
+ DEFAULT_GCS_SCOPE
};
+ <span class="kw">let </span><span class="kw-2">mut </span>token_loader = GoogleTokenLoader::new(scope, client.client());
+ <span class="kw">if let </span><span class="prelude-val">Some</span>(account) = <span class="kw-2">&</span><span class="self">self</span>.service_account {
+ token_loader = token_loader.with_service_account(account);
+ }
+ <span class="kw">if let </span><span class="prelude-val">Ok</span>(<span class="prelude-val">Some</span>(cred)) = cred_loader.load() {
+ token_loader = token_loader.with_credentials(cred)
+ }
+
+ <span class="kw">let </span>signer = GoogleSigner::new(<span class="string">"storage"</span>);
+
<span class="kw">let </span>backend = GcsBackend {
- root,
- endpoint,
- bucket: bucket.clone(),
- signer,
- client,
+ core: Arc::new(GcsCore {
+ endpoint,
+ bucket: bucket.to_string(),
+ root,
+ client,
+ signer,
+ token_loader,
+ credential_loader: cred_loader,
+ }),
};
<span class="prelude-val">Ok</span>(backend)
@@ -1037,27 +846,9 @@
}
<span class="doccomment">/// GCS storage backend
-</span><span class="attr">#[derive(Clone)]
+</span><span class="attr">#[derive(Clone, Debug)]
</span><span class="kw">pub struct </span>GcsBackend {
- endpoint: String,
- bucket: String,
- <span class="comment">// root should end with "/"
- </span>root: String,
-
- <span class="kw">pub </span>client: HttpClient,
- <span class="kw">pub </span>signer: Arc<GoogleSigner>,
-}
-
-<span class="kw">impl </span>Debug <span class="kw">for </span>GcsBackend {
- <span class="kw">fn </span>fmt(<span class="kw-2">&</span><span class="self">self</span>, f: <span class="kw-2">&mut </span>Formatter<<span class="lifetime">'_</span>>) -> std::fmt::Result {
- <span class="kw">let </span><span class="kw-2">mut </span>de = f.debug_struct(<span class="string">"Backend"</span>);
- de.field(<span class="string">"endpoint"</span>, <span class="kw-2">&</span><span class="self">self</span>.endpoint)
- .field(<span class="string">"bucket"</span>, <span class="kw-2">&</span><span class="self">self</span>.bucket)
- .field(<span class="string">"root"</span>, <span class="kw-2">&</span><span class="self">self</span>.root)
- .field(<span class="string">"client"</span>, <span class="kw-2">&</span><span class="self">self</span>.client)
- .field(<span class="string">"signer"</span>, <span class="kw-2">&</span><span class="string">"<redacted>"</span>)
- .finish()
- }
+ core: Arc<GcsCore>,
}
<span class="attr">#[async_trait]
@@ -1075,19 +866,21 @@
<span class="kw">let </span><span class="kw-2">mut </span>am = AccessorInfo::default();
am.set_scheme(Scheme::Gcs)
- .set_root(<span class="kw-2">&</span><span class="self">self</span>.root)
- .set_name(<span class="kw-2">&</span><span class="self">self</span>.bucket)
+ .set_root(<span class="kw-2">&</span><span class="self">self</span>.core.root)
+ .set_name(<span class="kw-2">&</span><span class="self">self</span>.core.bucket)
.set_capabilities(Read | Write | List | Scan | Copy)
.set_hints(ReadStreamable);
am
}
<span class="kw">async fn </span>create(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str, <span class="kw">_</span>: OpCreate) -> <span class="prelude-ty">Result</span><RpCreate> {
- <span class="kw">let </span><span class="kw-2">mut </span>req = <span class="self">self</span>.gcs_insert_object_request(path, <span class="prelude-val">Some</span>(<span class="number">0</span>), <span class="prelude-val">None</span>, AsyncBody::Empty)<span class="question-mark">?</span>;
+ <span class="kw">let </span><span class="kw-2">mut </span>req = <span class="self">self
+ </span>.core
+ .gcs_insert_object_request(path, <span class="prelude-val">Some</span>(<span class="number">0</span>), <span class="prelude-val">None</span>, AsyncBody::Empty)<span class="question-mark">?</span>;
- <span class="self">self</span>.signer.sign(<span class="kw-2">&mut </span>req).map_err(new_request_sign_error)<span class="question-mark">?</span>;
+ <span class="self">self</span>.core.sign(<span class="kw-2">&mut </span>req).<span class="kw">await</span><span class="question-mark">?</span>;
- <span class="kw">let </span>resp = <span class="self">self</span>.client.send(req).<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="kw">let </span>resp = <span class="self">self</span>.core.send(req).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="kw">if </span>resp.status().is_success() {
resp.into_body().consume().<span class="kw">await</span><span class="question-mark">?</span>;
@@ -1098,7 +891,7 @@
}
<span class="kw">async fn </span>read(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str, args: OpRead) -> <span class="prelude-ty">Result</span><(RpRead, <span class="self">Self</span>::Reader)> {
- <span class="kw">let </span>resp = <span class="self">self</span>.gcs_get_object(path, args.range()).<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="kw">let </span>resp = <span class="self">self</span>.core.gcs_get_object(path, args.range()).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="kw">if </span>resp.status().is_success() {
<span class="kw">let </span>meta = parse_into_metadata(path, resp.headers())<span class="question-mark">?</span>;
@@ -1118,32 +911,19 @@
<span class="prelude-val">Ok</span>((
RpWrite::default(),
- GcsWriter::new(<span class="self">self</span>.clone(), args, path.to_string()),
+ GcsWriter::new(<span class="self">self</span>.core.clone(), args, path.to_string()),
))
}
<span class="kw">async fn </span>copy(<span class="kw-2">&</span><span class="self">self</span>, from: <span class="kw-2">&</span>str, to: <span class="kw-2">&</span>str, <span class="kw">_</span>: OpCopy) -> <span class="prelude-ty">Result</span><RpCopy> {
- <span class="kw">let </span>source = percent_encode_path(<span class="kw-2">&</span>build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, from.trim_end_matches(<span class="string">'/'</span>)));
- <span class="kw">let </span>dest = percent_encode_path(<span class="kw-2">&</span>build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, to.trim_end_matches(<span class="string">'/'</span>)));
- <span class="kw">let </span>req_uri = <span class="macro">format!</span>(
- <span class="string">"{}/storage/v1/b/{}/o/{}/copyTo/b/{}/o/{}"</span>,
- <span class="self">self</span>.endpoint, <span class="self">self</span>.bucket, source, <span class="self">self</span>.bucket, dest
- );
-
- <span class="kw">let </span><span class="kw-2">mut </span>req = Request::post(req_uri)
- .body(AsyncBody::Empty)
- .map_err(new_request_build_error)<span class="question-mark">?</span>;
+ <span class="kw">let </span>resp = <span class="self">self</span>.core.gcs_copy_object(from, to).<span class="kw">await</span><span class="question-mark">?</span>;
- <span class="self">self</span>.signer.sign(<span class="kw-2">&mut </span>req).map_err(new_request_sign_error)<span class="question-mark">?</span>;
-
- <span class="kw">let </span>resp = <span class="self">self</span>.client.send(req).<span class="kw">await</span><span class="question-mark">?</span>;
-
- <span class="kw">if </span>!resp.status().is_success() {
- <span class="kw">return </span><span class="prelude-val">Err</span>(parse_error(resp).<span class="kw">await</span><span class="question-mark">?</span>);
+ <span class="kw">if </span>resp.status().is_success() {
+ resp.into_body().consume().<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="prelude-val">Ok</span>(RpCopy::default())
+ } <span class="kw">else </span>{
+ <span class="prelude-val">Err</span>(parse_error(resp).<span class="kw">await</span><span class="question-mark">?</span>)
}
- resp.into_body().consume().<span class="kw">await</span><span class="question-mark">?</span>;
-
- <span class="prelude-val">Ok</span>(RpCopy::default())
}
<span class="kw">async fn </span>stat(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str, <span class="kw">_</span>: OpStat) -> <span class="prelude-ty">Result</span><RpStat> {
@@ -1152,7 +932,7 @@
<span class="kw">return </span><span class="prelude-val">Ok</span>(RpStat::new(Metadata::new(EntryMode::DIR)));
}
- <span class="kw">let </span>resp = <span class="self">self</span>.gcs_get_object_metadata(path).<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="kw">let </span>resp = <span class="self">self</span>.core.gcs_get_object_metadata(path).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="kw">if </span>resp.status().is_success() {
<span class="comment">// read http response body
@@ -1193,7 +973,7 @@
}
<span class="kw">async fn </span>delete(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str, <span class="kw">_</span>: OpDelete) -> <span class="prelude-ty">Result</span><RpDelete> {
- <span class="kw">let </span>resp = <span class="self">self</span>.gcs_delete_object(path).<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="kw">let </span>resp = <span class="self">self</span>.core.gcs_delete_object(path).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="comment">// deleting not existing objects is ok
</span><span class="kw">if </span>resp.status().is_success() || resp.status() == StatusCode::NOT_FOUND {
@@ -1206,168 +986,18 @@
<span class="kw">async fn </span>list(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str, args: OpList) -> <span class="prelude-ty">Result</span><(RpList, <span class="self">Self</span>::Pager)> {
<span class="prelude-val">Ok</span>((
RpList::default(),
- GcsPager::new(Arc::new(<span class="self">self</span>.clone()), <span class="kw-2">&</span><span class="self">self</span>.root, path, <span class="string">"/"</span>, args.limit()),
+ GcsPager::new(<span class="self">self</span>.core.clone(), path, <span class="string">"/"</span>, args.limit()),
))
}
<span class="kw">async fn </span>scan(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str, args: OpScan) -> <span class="prelude-ty">Result</span><(RpScan, <span class="self">Self</span>::Pager)> {
<span class="prelude-val">Ok</span>((
RpScan::default(),
- GcsPager::new(Arc::new(<span class="self">self</span>.clone()), <span class="kw-2">&</span><span class="self">self</span>.root, path, <span class="string">""</span>, args.limit()),
+ GcsPager::new(<span class="self">self</span>.core.clone(), path, <span class="string">""</span>, args.limit()),
))
}
}
-<span class="kw">impl </span>GcsBackend {
- <span class="kw">fn </span>gcs_get_object_request(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str, range: BytesRange) -> <span class="prelude-ty">Result</span><Request<AsyncBody>> {
- <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
-
- <span class="kw">let </span>url = <span class="macro">format!</span>(
- <span class="string">"{}/storage/v1/b/{}/o/{}?alt=media"</span>,
- <span class="self">self</span>.endpoint,
- <span class="self">self</span>.bucket,
- percent_encode_path(<span class="kw-2">&</span>p)
- );
-
- <span class="kw">let </span><span class="kw-2">mut </span>req = Request::get(<span class="kw-2">&</span>url);
-
- <span class="kw">if </span>!range.is_full() {
- req = req.header(http::header::RANGE, range.to_header());
- }
-
- <span class="kw">let </span>req = req
- .body(AsyncBody::Empty)
- .map_err(new_request_build_error)<span class="question-mark">?</span>;
-
- <span class="prelude-val">Ok</span>(req)
- }
-
- <span class="kw">async fn </span>gcs_get_object(
- <span class="kw-2">&</span><span class="self">self</span>,
- path: <span class="kw-2">&</span>str,
- range: BytesRange,
- ) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
- <span class="kw">let </span><span class="kw-2">mut </span>req = <span class="self">self</span>.gcs_get_object_request(path, range)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.signer.sign(<span class="kw-2">&mut </span>req).map_err(new_request_sign_error)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.client.send(req).<span class="kw">await
- </span>}
-
- <span class="kw">pub fn </span>gcs_insert_object_request(
- <span class="kw-2">&</span><span class="self">self</span>,
- path: <span class="kw-2">&</span>str,
- size: <span class="prelude-ty">Option</span><usize>,
- content_type: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>,
- body: AsyncBody,
- ) -> <span class="prelude-ty">Result</span><Request<AsyncBody>> {
- <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
-
- <span class="kw">let </span>url = <span class="macro">format!</span>(
- <span class="string">"{}/upload/storage/v1/b/{}/o?uploadType=media&name={}"</span>,
- <span class="self">self</span>.endpoint,
- <span class="self">self</span>.bucket,
- percent_encode_path(<span class="kw-2">&</span>p)
- );
-
- <span class="kw">let </span><span class="kw-2">mut </span>req = Request::post(<span class="kw-2">&</span>url);
-
- <span class="kw">if let </span><span class="prelude-val">Some</span>(size) = size {
- req = req.header(CONTENT_LENGTH, size)
- }
-
- <span class="kw">if let </span><span class="prelude-val">Some</span>(mime) = content_type {
- req = req.header(CONTENT_TYPE, mime)
- }
-
- <span class="comment">// Set body
- </span><span class="kw">let </span>req = req.body(body).map_err(new_request_build_error)<span class="question-mark">?</span>;
-
- <span class="prelude-val">Ok</span>(req)
- }
-
- <span class="kw">async fn </span>gcs_get_object_metadata(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
- <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
-
- <span class="kw">let </span>url = <span class="macro">format!</span>(
- <span class="string">"{}/storage/v1/b/{}/o/{}"</span>,
- <span class="self">self</span>.endpoint,
- <span class="self">self</span>.bucket,
- percent_encode_path(<span class="kw-2">&</span>p)
- );
-
- <span class="kw">let </span>req = Request::get(<span class="kw-2">&</span>url);
-
- <span class="kw">let </span><span class="kw-2">mut </span>req = req
- .body(AsyncBody::Empty)
- .map_err(new_request_build_error)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.signer.sign(<span class="kw-2">&mut </span>req).map_err(new_request_sign_error)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.client.send(req).<span class="kw">await
- </span>}
-
- <span class="kw">async fn </span>gcs_delete_object(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
- <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
-
- <span class="kw">let </span>url = <span class="macro">format!</span>(
- <span class="string">"{}/storage/v1/b/{}/o/{}"</span>,
- <span class="self">self</span>.endpoint,
- <span class="self">self</span>.bucket,
- percent_encode_path(<span class="kw-2">&</span>p)
- );
-
- <span class="kw">let </span><span class="kw-2">mut </span>req = Request::delete(<span class="kw-2">&</span>url)
- .body(AsyncBody::Empty)
- .map_err(new_request_build_error)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.signer.sign(<span class="kw-2">&mut </span>req).map_err(new_request_sign_error)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.client.send(req).<span class="kw">await
- </span>}
-
- <span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">async fn </span>gcs_list_objects(
- <span class="kw-2">&</span><span class="self">self</span>,
- path: <span class="kw-2">&</span>str,
- page_token: <span class="kw-2">&</span>str,
- delimiter: <span class="kw-2">&</span>str,
- limit: <span class="prelude-ty">Option</span><usize>,
- ) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
- <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
-
- <span class="kw">let </span><span class="kw-2">mut </span>url = <span class="macro">format!</span>(
- <span class="string">"{}/storage/v1/b/{}/o?prefix={}"</span>,
- <span class="self">self</span>.endpoint,
- <span class="self">self</span>.bucket,
- percent_encode_path(<span class="kw-2">&</span>p)
- );
- <span class="kw">if </span>!delimiter.is_empty() {
- <span class="macro">write!</span>(url, <span class="string">"&delimiter={delimiter}"</span>).expect(<span class="string">"write into string must succeed"</span>);
- }
- <span class="kw">if let </span><span class="prelude-val">Some</span>(limit) = limit {
- <span class="macro">write!</span>(url, <span class="string">"&maxResults={limit}"</span>).expect(<span class="string">"write into string must succeed"</span>);
- }
- <span class="kw">if </span>!page_token.is_empty() {
- <span class="comment">// NOTE:
- //
- // GCS uses pageToken in request and nextPageToken in response
- //
- // Don't know how will those tokens be like so this part are copied
- // directly from AWS S3 service.
- </span><span class="macro">write!</span>(url, <span class="string">"&pageToken={}"</span>, percent_encode_path(page_token))
- .expect(<span class="string">"write into string must succeed"</span>);
- }
-
- <span class="kw">let </span><span class="kw-2">mut </span>req = Request::get(<span class="kw-2">&</span>url)
- .body(AsyncBody::Empty)
- .map_err(new_request_build_error)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.signer.sign(<span class="kw-2">&mut </span>req).map_err(new_request_sign_error)<span class="question-mark">?</span>;
-
- <span class="self">self</span>.client.send(req).<span class="kw">await
- </span>}
-}
-
<span class="doccomment">/// The raw json response returned by [`get`](https://cloud.google.com/storage/docs/json_api/v1/objects/get)
</span><span class="attr">#[derive(Debug, Default, Deserialize)]
#[serde(default, rename_all = <span class="string">"camelCase"</span>)]
diff --git a/docs/rust/src/opendal/services/gcs/core.rs.html b/docs/rust/src/opendal/services/gcs/core.rs.html
new file mode 100644
index 00000000..aac26e89
--- /dev/null
+++ b/docs/rust/src/opendal/services/gcs/core.rs.html
@@ -0,0 +1,526 @@
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `core/src/services/gcs/core.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>core.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2">< [...]
+<a href="#2" id="2">2</a>
+<a href="#3" id="3">3</a>
+<a href="#4" id="4">4</a>
+<a href="#5" id="5">5</a>
+<a href="#6" id="6">6</a>
+<a href="#7" id="7">7</a>
+<a href="#8" id="8">8</a>
+<a href="#9" id="9">9</a>
+<a href="#10" id="10">10</a>
+<a href="#11" id="11">11</a>
+<a href="#12" id="12">12</a>
+<a href="#13" id="13">13</a>
+<a href="#14" id="14">14</a>
+<a href="#15" id="15">15</a>
+<a href="#16" id="16">16</a>
+<a href="#17" id="17">17</a>
+<a href="#18" id="18">18</a>
+<a href="#19" id="19">19</a>
+<a href="#20" id="20">20</a>
+<a href="#21" id="21">21</a>
+<a href="#22" id="22">22</a>
+<a href="#23" id="23">23</a>
+<a href="#24" id="24">24</a>
+<a href="#25" id="25">25</a>
+<a href="#26" id="26">26</a>
+<a href="#27" id="27">27</a>
+<a href="#28" id="28">28</a>
+<a href="#29" id="29">29</a>
+<a href="#30" id="30">30</a>
+<a href="#31" id="31">31</a>
+<a href="#32" id="32">32</a>
+<a href="#33" id="33">33</a>
+<a href="#34" id="34">34</a>
+<a href="#35" id="35">35</a>
+<a href="#36" id="36">36</a>
+<a href="#37" id="37">37</a>
+<a href="#38" id="38">38</a>
+<a href="#39" id="39">39</a>
+<a href="#40" id="40">40</a>
+<a href="#41" id="41">41</a>
+<a href="#42" id="42">42</a>
+<a href="#43" id="43">43</a>
+<a href="#44" id="44">44</a>
+<a href="#45" id="45">45</a>
+<a href="#46" id="46">46</a>
+<a href="#47" id="47">47</a>
+<a href="#48" id="48">48</a>
+<a href="#49" id="49">49</a>
+<a href="#50" id="50">50</a>
+<a href="#51" id="51">51</a>
+<a href="#52" id="52">52</a>
+<a href="#53" id="53">53</a>
+<a href="#54" id="54">54</a>
+<a href="#55" id="55">55</a>
+<a href="#56" id="56">56</a>
+<a href="#57" id="57">57</a>
+<a href="#58" id="58">58</a>
+<a href="#59" id="59">59</a>
+<a href="#60" id="60">60</a>
+<a href="#61" id="61">61</a>
+<a href="#62" id="62">62</a>
+<a href="#63" id="63">63</a>
+<a href="#64" id="64">64</a>
+<a href="#65" id="65">65</a>
+<a href="#66" id="66">66</a>
+<a href="#67" id="67">67</a>
+<a href="#68" id="68">68</a>
+<a href="#69" id="69">69</a>
+<a href="#70" id="70">70</a>
+<a href="#71" id="71">71</a>
+<a href="#72" id="72">72</a>
+<a href="#73" id="73">73</a>
+<a href="#74" id="74">74</a>
+<a href="#75" id="75">75</a>
+<a href="#76" id="76">76</a>
+<a href="#77" id="77">77</a>
+<a href="#78" id="78">78</a>
+<a href="#79" id="79">79</a>
+<a href="#80" id="80">80</a>
+<a href="#81" id="81">81</a>
+<a href="#82" id="82">82</a>
+<a href="#83" id="83">83</a>
+<a href="#84" id="84">84</a>
+<a href="#85" id="85">85</a>
+<a href="#86" id="86">86</a>
+<a href="#87" id="87">87</a>
+<a href="#88" id="88">88</a>
+<a href="#89" id="89">89</a>
+<a href="#90" id="90">90</a>
+<a href="#91" id="91">91</a>
+<a href="#92" id="92">92</a>
+<a href="#93" id="93">93</a>
+<a href="#94" id="94">94</a>
+<a href="#95" id="95">95</a>
+<a href="#96" id="96">96</a>
+<a href="#97" id="97">97</a>
+<a href="#98" id="98">98</a>
+<a href="#99" id="99">99</a>
+<a href="#100" id="100">100</a>
+<a href="#101" id="101">101</a>
+<a href="#102" id="102">102</a>
+<a href="#103" id="103">103</a>
+<a href="#104" id="104">104</a>
+<a href="#105" id="105">105</a>
+<a href="#106" id="106">106</a>
+<a href="#107" id="107">107</a>
+<a href="#108" id="108">108</a>
+<a href="#109" id="109">109</a>
+<a href="#110" id="110">110</a>
+<a href="#111" id="111">111</a>
+<a href="#112" id="112">112</a>
+<a href="#113" id="113">113</a>
+<a href="#114" id="114">114</a>
+<a href="#115" id="115">115</a>
+<a href="#116" id="116">116</a>
+<a href="#117" id="117">117</a>
+<a href="#118" id="118">118</a>
+<a href="#119" id="119">119</a>
+<a href="#120" id="120">120</a>
+<a href="#121" id="121">121</a>
+<a href="#122" id="122">122</a>
+<a href="#123" id="123">123</a>
+<a href="#124" id="124">124</a>
+<a href="#125" id="125">125</a>
+<a href="#126" id="126">126</a>
+<a href="#127" id="127">127</a>
+<a href="#128" id="128">128</a>
+<a href="#129" id="129">129</a>
+<a href="#130" id="130">130</a>
+<a href="#131" id="131">131</a>
+<a href="#132" id="132">132</a>
+<a href="#133" id="133">133</a>
+<a href="#134" id="134">134</a>
+<a href="#135" id="135">135</a>
+<a href="#136" id="136">136</a>
+<a href="#137" id="137">137</a>
+<a href="#138" id="138">138</a>
+<a href="#139" id="139">139</a>
+<a href="#140" id="140">140</a>
+<a href="#141" id="141">141</a>
+<a href="#142" id="142">142</a>
+<a href="#143" id="143">143</a>
+<a href="#144" id="144">144</a>
+<a href="#145" id="145">145</a>
+<a href="#146" id="146">146</a>
+<a href="#147" id="147">147</a>
+<a href="#148" id="148">148</a>
+<a href="#149" id="149">149</a>
+<a href="#150" id="150">150</a>
+<a href="#151" id="151">151</a>
+<a href="#152" id="152">152</a>
+<a href="#153" id="153">153</a>
+<a href="#154" id="154">154</a>
+<a href="#155" id="155">155</a>
+<a href="#156" id="156">156</a>
+<a href="#157" id="157">157</a>
+<a href="#158" id="158">158</a>
+<a href="#159" id="159">159</a>
+<a href="#160" id="160">160</a>
+<a href="#161" id="161">161</a>
+<a href="#162" id="162">162</a>
+<a href="#163" id="163">163</a>
+<a href="#164" id="164">164</a>
+<a href="#165" id="165">165</a>
+<a href="#166" id="166">166</a>
+<a href="#167" id="167">167</a>
+<a href="#168" id="168">168</a>
+<a href="#169" id="169">169</a>
+<a href="#170" id="170">170</a>
+<a href="#171" id="171">171</a>
+<a href="#172" id="172">172</a>
+<a href="#173" id="173">173</a>
+<a href="#174" id="174">174</a>
+<a href="#175" id="175">175</a>
+<a href="#176" id="176">176</a>
+<a href="#177" id="177">177</a>
+<a href="#178" id="178">178</a>
+<a href="#179" id="179">179</a>
+<a href="#180" id="180">180</a>
+<a href="#181" id="181">181</a>
+<a href="#182" id="182">182</a>
+<a href="#183" id="183">183</a>
+<a href="#184" id="184">184</a>
+<a href="#185" id="185">185</a>
+<a href="#186" id="186">186</a>
+<a href="#187" id="187">187</a>
+<a href="#188" id="188">188</a>
+<a href="#189" id="189">189</a>
+<a href="#190" id="190">190</a>
+<a href="#191" id="191">191</a>
+<a href="#192" id="192">192</a>
+<a href="#193" id="193">193</a>
+<a href="#194" id="194">194</a>
+<a href="#195" id="195">195</a>
+<a href="#196" id="196">196</a>
+<a href="#197" id="197">197</a>
+<a href="#198" id="198">198</a>
+<a href="#199" id="199">199</a>
+<a href="#200" id="200">200</a>
+<a href="#201" id="201">201</a>
+<a href="#202" id="202">202</a>
+<a href="#203" id="203">203</a>
+<a href="#204" id="204">204</a>
+<a href="#205" id="205">205</a>
+<a href="#206" id="206">206</a>
+<a href="#207" id="207">207</a>
+<a href="#208" id="208">208</a>
+<a href="#209" id="209">209</a>
+<a href="#210" id="210">210</a>
+<a href="#211" id="211">211</a>
+<a href="#212" id="212">212</a>
+<a href="#213" id="213">213</a>
+<a href="#214" id="214">214</a>
+<a href="#215" id="215">215</a>
+<a href="#216" id="216">216</a>
+<a href="#217" id="217">217</a>
+<a href="#218" id="218">218</a>
+<a href="#219" id="219">219</a>
+<a href="#220" id="220">220</a>
+<a href="#221" id="221">221</a>
+<a href="#222" id="222">222</a>
+<a href="#223" id="223">223</a>
+<a href="#224" id="224">224</a>
+<a href="#225" id="225">225</a>
+<a href="#226" id="226">226</a>
+<a href="#227" id="227">227</a>
+<a href="#228" id="228">228</a>
+<a href="#229" id="229">229</a>
+<a href="#230" id="230">230</a>
+<a href="#231" id="231">231</a>
+<a href="#232" id="232">232</a>
+<a href="#233" id="233">233</a>
+<a href="#234" id="234">234</a>
+<a href="#235" id="235">235</a>
+<a href="#236" id="236">236</a>
+<a href="#237" id="237">237</a>
+<a href="#238" id="238">238</a>
+<a href="#239" id="239">239</a>
+<a href="#240" id="240">240</a>
+<a href="#241" id="241">241</a>
+<a href="#242" id="242">242</a>
+<a href="#243" id="243">243</a>
+<a href="#244" id="244">244</a>
+<a href="#245" id="245">245</a>
+<a href="#246" id="246">246</a>
+<a href="#247" id="247">247</a>
+<a href="#248" id="248">248</a>
+<a href="#249" id="249">249</a>
+<a href="#250" id="250">250</a>
+<a href="#251" id="251">251</a>
+<a href="#252" id="252">252</a>
+<a href="#253" id="253">253</a>
+<a href="#254" id="254">254</a>
+<a href="#255" id="255">255</a>
+<a href="#256" id="256">256</a>
+<a href="#257" id="257">257</a>
+<a href="#258" id="258">258</a>
+<a href="#259" id="259">259</a>
+<a href="#260" id="260">260</a>
+<a href="#261" id="261">261</a>
+<a href="#262" id="262">262</a>
+</pre><pre class="rust"><code><span class="comment">// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+</span><span class="kw">use </span>std::fmt::Debug;
+<span class="kw">use </span>std::fmt::Formatter;
+<span class="kw">use </span>std::fmt::Write;
+
+<span class="kw">use </span>http::header::CONTENT_LENGTH;
+<span class="kw">use </span>http::header::CONTENT_TYPE;
+<span class="kw">use </span>http::Request;
+<span class="kw">use </span>http::Response;
+<span class="kw">use </span>reqsign_0_9::GoogleCredentialLoader;
+<span class="kw">use </span>reqsign_0_9::GoogleSigner;
+<span class="kw">use </span>reqsign_0_9::GoogleToken;
+<span class="kw">use </span>reqsign_0_9::GoogleTokenLoader;
+
+<span class="kw">use </span><span class="kw">super</span>::uri::percent_encode_path;
+<span class="kw">use </span><span class="kw">crate</span>::raw::<span class="kw-2">*</span>;
+<span class="kw">use crate</span>::<span class="kw-2">*</span>;
+
+<span class="kw">pub struct </span>GcsCore {
+ <span class="kw">pub </span>endpoint: String,
+ <span class="kw">pub </span>bucket: String,
+ <span class="kw">pub </span>root: String,
+
+ <span class="kw">pub </span>client: HttpClient,
+ <span class="kw">pub </span>signer: GoogleSigner,
+ <span class="kw">pub </span>token_loader: GoogleTokenLoader,
+ <span class="kw">pub </span>credential_loader: GoogleCredentialLoader,
+}
+
+<span class="kw">impl </span>Debug <span class="kw">for </span>GcsCore {
+ <span class="kw">fn </span>fmt(<span class="kw-2">&</span><span class="self">self</span>, f: <span class="kw-2">&mut </span>Formatter<<span class="lifetime">'_</span>>) -> std::fmt::Result {
+ <span class="kw">let </span><span class="kw-2">mut </span>de = f.debug_struct(<span class="string">"Backend"</span>);
+ de.field(<span class="string">"endpoint"</span>, <span class="kw-2">&</span><span class="self">self</span>.endpoint)
+ .field(<span class="string">"bucket"</span>, <span class="kw-2">&</span><span class="self">self</span>.bucket)
+ .field(<span class="string">"root"</span>, <span class="kw-2">&</span><span class="self">self</span>.root)
+ .finish_non_exhaustive()
+ }
+}
+
+<span class="kw">impl </span>GcsCore {
+ <span class="kw">async fn </span>load_token(<span class="kw-2">&</span><span class="self">self</span>) -> <span class="prelude-ty">Result</span><GoogleToken> {
+ <span class="kw">let </span>cred = <span class="self">self
+ </span>.token_loader
+ .load()
+ .<span class="kw">await
+ </span>.map_err(new_request_credential_error)<span class="question-mark">?</span>;
+
+ <span class="kw">if let </span><span class="prelude-val">Some</span>(cred) = cred {
+ <span class="prelude-val">Ok</span>(cred)
+ } <span class="kw">else </span>{
+ <span class="prelude-val">Err</span>(Error::new(
+ ErrorKind::ConfigInvalid,
+ <span class="string">"no valid credential found"</span>,
+ ))
+ }
+ }
+
+ <span class="kw">pub async fn </span>sign<T>(<span class="kw-2">&</span><span class="self">self</span>, req: <span class="kw-2">&mut </span>Request<T>) -> <span class="prelude-ty">Result</span><()> {
+ <span class="kw">let </span>cred = <span class="self">self</span>.load_token().<span class="kw">await</span><span class="question-mark">?</span>;
+
+ <span class="self">self</span>.signer.sign(req, <span class="kw-2">&</span>cred).map_err(new_request_sign_error)
+ }
+
+ <span class="attr">#[inline]
+ </span><span class="kw">pub async fn </span>send(<span class="kw-2">&</span><span class="self">self</span>, req: Request<AsyncBody>) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
+ <span class="self">self</span>.client.send(req).<span class="kw">await
+ </span>}
+}
+
+<span class="kw">impl </span>GcsCore {
+ <span class="kw">pub fn </span>gcs_get_object_request(
+ <span class="kw-2">&</span><span class="self">self</span>,
+ path: <span class="kw-2">&</span>str,
+ range: BytesRange,
+ ) -> <span class="prelude-ty">Result</span><Request<AsyncBody>> {
+ <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
+
+ <span class="kw">let </span>url = <span class="macro">format!</span>(
+ <span class="string">"{}/storage/v1/b/{}/o/{}?alt=media"</span>,
+ <span class="self">self</span>.endpoint,
+ <span class="self">self</span>.bucket,
+ percent_encode_path(<span class="kw-2">&</span>p)
+ );
+
+ <span class="kw">let </span><span class="kw-2">mut </span>req = Request::get(<span class="kw-2">&</span>url);
+
+ <span class="kw">if </span>!range.is_full() {
+ req = req.header(http::header::RANGE, range.to_header());
+ }
+
+ <span class="kw">let </span>req = req
+ .body(AsyncBody::Empty)
+ .map_err(new_request_build_error)<span class="question-mark">?</span>;
+
+ <span class="prelude-val">Ok</span>(req)
+ }
+
+ <span class="kw">pub async fn </span>gcs_get_object(
+ <span class="kw-2">&</span><span class="self">self</span>,
+ path: <span class="kw-2">&</span>str,
+ range: BytesRange,
+ ) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
+ <span class="kw">let </span><span class="kw-2">mut </span>req = <span class="self">self</span>.gcs_get_object_request(path, range)<span class="question-mark">?</span>;
+
+ <span class="self">self</span>.sign(<span class="kw-2">&mut </span>req).<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="self">self</span>.send(req).<span class="kw">await
+ </span>}
+
+ <span class="kw">pub fn </span>gcs_insert_object_request(
+ <span class="kw-2">&</span><span class="self">self</span>,
+ path: <span class="kw-2">&</span>str,
+ size: <span class="prelude-ty">Option</span><usize>,
+ content_type: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>,
+ body: AsyncBody,
+ ) -> <span class="prelude-ty">Result</span><Request<AsyncBody>> {
+ <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
+
+ <span class="kw">let </span>url = <span class="macro">format!</span>(
+ <span class="string">"{}/upload/storage/v1/b/{}/o?uploadType=media&name={}"</span>,
+ <span class="self">self</span>.endpoint,
+ <span class="self">self</span>.bucket,
+ percent_encode_path(<span class="kw-2">&</span>p)
+ );
+
+ <span class="kw">let </span><span class="kw-2">mut </span>req = Request::post(<span class="kw-2">&</span>url);
+
+ <span class="kw">if let </span><span class="prelude-val">Some</span>(size) = size {
+ req = req.header(CONTENT_LENGTH, size)
+ }
+
+ <span class="kw">if let </span><span class="prelude-val">Some</span>(mime) = content_type {
+ req = req.header(CONTENT_TYPE, mime)
+ }
+
+ <span class="comment">// Set body
+ </span><span class="kw">let </span>req = req.body(body).map_err(new_request_build_error)<span class="question-mark">?</span>;
+
+ <span class="prelude-val">Ok</span>(req)
+ }
+
+ <span class="kw">pub async fn </span>gcs_get_object_metadata(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
+ <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
+
+ <span class="kw">let </span>url = <span class="macro">format!</span>(
+ <span class="string">"{}/storage/v1/b/{}/o/{}"</span>,
+ <span class="self">self</span>.endpoint,
+ <span class="self">self</span>.bucket,
+ percent_encode_path(<span class="kw-2">&</span>p)
+ );
+
+ <span class="kw">let </span>req = Request::get(<span class="kw-2">&</span>url);
+
+ <span class="kw">let </span><span class="kw-2">mut </span>req = req
+ .body(AsyncBody::Empty)
+ .map_err(new_request_build_error)<span class="question-mark">?</span>;
+
+ <span class="self">self</span>.sign(<span class="kw-2">&mut </span>req).<span class="kw">await</span><span class="question-mark">?</span>;
+
+ <span class="self">self</span>.send(req).<span class="kw">await
+ </span>}
+
+ <span class="kw">pub async fn </span>gcs_delete_object(<span class="kw-2">&</span><span class="self">self</span>, path: <span class="kw-2">&</span>str) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
+ <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
+
+ <span class="kw">let </span>url = <span class="macro">format!</span>(
+ <span class="string">"{}/storage/v1/b/{}/o/{}"</span>,
+ <span class="self">self</span>.endpoint,
+ <span class="self">self</span>.bucket,
+ percent_encode_path(<span class="kw-2">&</span>p)
+ );
+
+ <span class="kw">let </span><span class="kw-2">mut </span>req = Request::delete(<span class="kw-2">&</span>url)
+ .body(AsyncBody::Empty)
+ .map_err(new_request_build_error)<span class="question-mark">?</span>;
+
+ <span class="self">self</span>.sign(<span class="kw-2">&mut </span>req).<span class="kw">await</span><span class="question-mark">?</span>;
+
+ <span class="self">self</span>.send(req).<span class="kw">await
+ </span>}
+
+ <span class="kw">pub async fn </span>gcs_copy_object(
+ <span class="kw-2">&</span><span class="self">self</span>,
+ from: <span class="kw-2">&</span>str,
+ to: <span class="kw-2">&</span>str,
+ ) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
+ <span class="kw">let </span>source = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, from);
+ <span class="kw">let </span>dest = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, to);
+
+ <span class="kw">let </span>req_uri = <span class="macro">format!</span>(
+ <span class="string">"{}/storage/v1/b/{}/o/{}/copyTo/b/{}/o/{}"</span>,
+ <span class="self">self</span>.endpoint,
+ <span class="self">self</span>.bucket,
+ percent_encode_path(<span class="kw-2">&</span>source),
+ <span class="self">self</span>.bucket,
+ percent_encode_path(<span class="kw-2">&</span>dest)
+ );
+
+ <span class="kw">let </span><span class="kw-2">mut </span>req = Request::post(req_uri)
+ .body(AsyncBody::Empty)
+ .map_err(new_request_build_error)<span class="question-mark">?</span>;
+
+ <span class="self">self</span>.sign(<span class="kw-2">&mut </span>req).<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="self">self</span>.send(req).<span class="kw">await
+ </span>}
+
+ <span class="kw">pub async fn </span>gcs_list_objects(
+ <span class="kw-2">&</span><span class="self">self</span>,
+ path: <span class="kw-2">&</span>str,
+ page_token: <span class="kw-2">&</span>str,
+ delimiter: <span class="kw-2">&</span>str,
+ limit: <span class="prelude-ty">Option</span><usize>,
+ ) -> <span class="prelude-ty">Result</span><Response<IncomingAsyncBody>> {
+ <span class="kw">let </span>p = build_abs_path(<span class="kw-2">&</span><span class="self">self</span>.root, path);
+
+ <span class="kw">let </span><span class="kw-2">mut </span>url = <span class="macro">format!</span>(
+ <span class="string">"{}/storage/v1/b/{}/o?prefix={}"</span>,
+ <span class="self">self</span>.endpoint,
+ <span class="self">self</span>.bucket,
+ percent_encode_path(<span class="kw-2">&</span>p)
+ );
+ <span class="kw">if </span>!delimiter.is_empty() {
+ <span class="macro">write!</span>(url, <span class="string">"&delimiter={delimiter}"</span>).expect(<span class="string">"write into string must succeed"</span>);
+ }
+ <span class="kw">if let </span><span class="prelude-val">Some</span>(limit) = limit {
+ <span class="macro">write!</span>(url, <span class="string">"&maxResults={limit}"</span>).expect(<span class="string">"write into string must succeed"</span>);
+ }
+ <span class="kw">if </span>!page_token.is_empty() {
+ <span class="comment">// NOTE:
+ //
+ // GCS uses pageToken in request and nextPageToken in response
+ //
+ // Don't know how will those tokens be like so this part are copied
+ // directly from AWS S3 service.
+ </span><span class="macro">write!</span>(url, <span class="string">"&pageToken={}"</span>, percent_encode_path(page_token))
+ .expect(<span class="string">"write into string must succeed"</span>);
+ }
+
+ <span class="kw">let </span><span class="kw-2">mut </span>req = Request::get(<span class="kw-2">&</span>url)
+ .body(AsyncBody::Empty)
+ .map_err(new_request_build_error)<span class="question-mark">?</span>;
+
+ <span class="self">self</span>.sign(<span class="kw-2">&mut </span>req).<span class="kw">await</span><span class="question-mark">?</span>;
+
+ <span class="self">self</span>.send(req).<span class="kw">await
+ </span>}
+}
+</code></pre></div>
+</section></main><div id="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="opendal" data-themes="" data-resource-suffix="" data-rustdoc-version="1.68.2 (9eb3afe9e 2023-03-27)" data-search-js="search-98d53477a794af0b.js" data-settings-js="settings-c3c521c753752a1a.js" data-settings-css="settings-08ddfdda51b8ee2e.css" ></div></body></html>
\ No newline at end of file
diff --git a/docs/rust/src/opendal/services/gcs/mod.rs.html b/docs/rust/src/opendal/services/gcs/mod.rs.html
index c5087bce..1d17bf6a 100644
--- a/docs/rust/src/opendal/services/gcs/mod.rs.html
+++ b/docs/rust/src/opendal/services/gcs/mod.rs.html
@@ -22,6 +22,7 @@
<a href="#22" id="22">22</a>
<a href="#23" id="23">23</a>
<a href="#24" id="24">24</a>
+<a href="#25" id="25">25</a>
</pre><pre class="rust"><code><span class="comment">// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -42,6 +43,7 @@
</span><span class="kw">mod </span>backend;
<span class="kw">pub use </span>backend::GcsBuilder <span class="kw">as </span>Gcs;
+<span class="kw">mod </span>core;
<span class="kw">mod </span>error;
<span class="kw">mod </span>pager;
<span class="kw">mod </span>uri;
diff --git a/docs/rust/src/opendal/services/gcs/pager.rs.html b/docs/rust/src/opendal/services/gcs/pager.rs.html
index 38389a2a..b7a32879 100644
--- a/docs/rust/src/opendal/services/gcs/pager.rs.html
+++ b/docs/rust/src/opendal/services/gcs/pager.rs.html
@@ -300,12 +300,6 @@
<a href="#300" id="300">300</a>
<a href="#301" id="301">301</a>
<a href="#302" id="302">302</a>
-<a href="#303" id="303">303</a>
-<a href="#304" id="304">304</a>
-<a href="#305" id="305">305</a>
-<a href="#306" id="306">306</a>
-<a href="#307" id="307">307</a>
-<a href="#308" id="308">308</a>
</pre><pre class="rust"><code><span class="comment">// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -331,7 +325,7 @@
<span class="kw">use </span>time::format_description::well_known::Rfc3339;
<span class="kw">use </span>time::OffsetDateTime;
-<span class="kw">use </span><span class="kw">super</span>::backend::GcsBackend;
+<span class="kw">use </span><span class="kw">super</span>::core::GcsCore;
<span class="kw">use </span><span class="kw">super</span>::error::parse_error;
<span class="kw">use </span><span class="kw">crate</span>::raw::<span class="kw-2">*</span>;
<span class="kw">use crate</span>::<span class="kw-2">*</span>;
@@ -339,8 +333,8 @@
<span class="doccomment">/// GcsPager takes over task of listing objects and
/// helps walking directory
</span><span class="kw">pub struct </span>GcsPager {
- backend: Arc<GcsBackend>,
- root: String,
+ core: Arc<GcsCore>,
+
path: String,
delimiter: String,
limit: <span class="prelude-ty">Option</span><usize>,
@@ -351,16 +345,10 @@
<span class="kw">impl </span>GcsPager {
<span class="doccomment">/// Generate a new directory walker
- </span><span class="kw">pub fn </span>new(
- backend: Arc<GcsBackend>,
- root: <span class="kw-2">&</span>str,
- path: <span class="kw-2">&</span>str,
- delimiter: <span class="kw-2">&</span>str,
- limit: <span class="prelude-ty">Option</span><usize>,
- ) -> <span class="self">Self </span>{
+ </span><span class="kw">pub fn </span>new(core: Arc<GcsCore>, path: <span class="kw-2">&</span>str, delimiter: <span class="kw-2">&</span>str, limit: <span class="prelude-ty">Option</span><usize>) -> <span class="self">Self </span>{
<span class="self">Self </span>{
- backend,
- root: root.to_string(),
+ core,
+
path: path.to_string(),
delimiter: delimiter.to_string(),
limit,
@@ -379,7 +367,7 @@
}
<span class="kw">let </span>resp = <span class="self">self
- </span>.backend
+ </span>.core
.gcs_list_objects(<span class="kw-2">&</span><span class="self">self</span>.path, <span class="kw-2">&</span><span class="self">self</span>.page_token, <span class="kw-2">&</span><span class="self">self</span>.delimiter, <span class="self">self</span>.limit)
.<span class="kw">await</span><span class="question-mark">?</span>;
@@ -401,7 +389,7 @@
<span class="kw">for </span>prefix <span class="kw">in </span>output.prefixes {
<span class="kw">let </span>de = oio::Entry::new(
- <span class="kw-2">&</span>build_rel_path(<span class="kw-2">&</span><span class="self">self</span>.root, <span class="kw-2">&</span>prefix),
+ <span class="kw-2">&</span>build_rel_path(<span class="kw-2">&</span><span class="self">self</span>.core.root, <span class="kw-2">&</span>prefix),
Metadata::new(EntryMode::DIR),
);
@@ -432,7 +420,7 @@
})<span class="question-mark">?</span>;
meta.set_last_modified(dt);
- <span class="kw">let </span>de = oio::Entry::new(<span class="kw-2">&</span>build_rel_path(<span class="kw-2">&</span><span class="self">self</span>.root, <span class="kw-2">&</span>object.name), meta);
+ <span class="kw">let </span>de = oio::Entry::new(<span class="kw-2">&</span>build_rel_path(<span class="kw-2">&</span><span class="self">self</span>.core.root, <span class="kw-2">&</span>object.name), meta);
entries.push(de);
}
diff --git a/docs/rust/src/opendal/services/gcs/writer.rs.html b/docs/rust/src/opendal/services/gcs/writer.rs.html
index 3fa5521c..88f7dc3f 100644
--- a/docs/rust/src/opendal/services/gcs/writer.rs.html
+++ b/docs/rust/src/opendal/services/gcs/writer.rs.html
@@ -78,7 +78,6 @@
<a href="#78" id="78">78</a>
<a href="#79" id="79">79</a>
<a href="#80" id="80">80</a>
-<a href="#81" id="81">81</a>
</pre><pre class="rust"><code><span class="comment">// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -96,45 +95,44 @@
// specific language governing permissions and limitations
// under the License.
-</span><span class="kw">use </span>async_trait::async_trait;
+</span><span class="kw">use </span>std::sync::Arc;
+
+<span class="kw">use </span>async_trait::async_trait;
<span class="kw">use </span>bytes::Bytes;
<span class="kw">use </span>http::StatusCode;
-<span class="kw">use </span><span class="kw">super</span>::backend::GcsBackend;
+<span class="kw">use </span><span class="kw">super</span>::core::GcsCore;
<span class="kw">use </span><span class="kw">super</span>::error::parse_error;
<span class="kw">use </span><span class="kw">crate</span>::ops::OpWrite;
<span class="kw">use </span><span class="kw">crate</span>::raw::<span class="kw-2">*</span>;
<span class="kw">use crate</span>::<span class="kw-2">*</span>;
<span class="kw">pub struct </span>GcsWriter {
- backend: GcsBackend,
+ core: Arc<GcsCore>,
op: OpWrite,
path: String,
}
<span class="kw">impl </span>GcsWriter {
- <span class="kw">pub fn </span>new(backend: GcsBackend, op: OpWrite, path: String) -> <span class="self">Self </span>{
- GcsWriter { backend, op, path }
+ <span class="kw">pub fn </span>new(core: Arc<GcsCore>, op: OpWrite, path: String) -> <span class="self">Self </span>{
+ GcsWriter { core, op, path }
}
}
<span class="attr">#[async_trait]
</span><span class="kw">impl </span>oio::Write <span class="kw">for </span>GcsWriter {
<span class="kw">async fn </span>write(<span class="kw-2">&mut </span><span class="self">self</span>, bs: Bytes) -> <span class="prelude-ty">Result</span><()> {
- <span class="kw">let </span><span class="kw-2">mut </span>req = <span class="self">self</span>.backend.gcs_insert_object_request(
- <span class="kw-2">&</span><span class="self">self</span>.path,
+ <span class="kw">let </span><span class="kw-2">mut </span>req = <span class="self">self</span>.core.gcs_insert_object_request(
+ <span class="kw-2">&</span>percent_encode_path(<span class="kw-2">&</span><span class="self">self</span>.path),
<span class="prelude-val">Some</span>(bs.len()),
<span class="self">self</span>.op.content_type(),
AsyncBody::Bytes(bs),
)<span class="question-mark">?</span>;
- <span class="self">self</span>.backend
- .signer
- .sign(<span class="kw-2">&mut </span>req)
- .map_err(new_request_sign_error)<span class="question-mark">?</span>;
+ <span class="self">self</span>.core.sign(<span class="kw-2">&mut </span>req).<span class="kw">await</span><span class="question-mark">?</span>;
- <span class="kw">let </span>resp = <span class="self">self</span>.backend.client.send(req).<span class="kw">await</span><span class="question-mark">?</span>;
+ <span class="kw">let </span>resp = <span class="self">self</span>.core.send(req).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="kw">let </span>status = resp.status();
diff --git a/index.html b/index.html
index aff07133..01b0068c 100644
--- a/index.html
+++ b/index.html
@@ -5,13 +5,13 @@
<meta name="generator" content="Docusaurus v2.3.1">
<title data-rh="true">Apache OpenDAL</title><meta data-rh="true" property="og:title" content="Apache OpenDAL"><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://opendal.apache.org/"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_tag" content="default"><meta data-rh="true" name="docse [...]
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache OpenDAL Atom Feed"><link rel="stylesheet" href="/assets/css/styles.8610ae2e.css">
-<link rel="preload" href="/assets/js/runtime~main.77af7b52.js" as="script">
+<link rel="preload" href="/assets/js/runtime~main.9eb89a2d.js" as="script">
<link rel="preload" href="/assets/js/main.fe9ff58f.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div id="docusaurus-base-url-issue-banner-container"></div><div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hid [...]
-<script src="/assets/js/runtime~main.77af7b52.js"></script>
+<script src="/assets/js/runtime~main.9eb89a2d.js"></script>
<script src="/assets/js/main.fe9ff58f.js"></script>
</body>
</html>
\ No newline at end of file