Skip to main content

aliyun-drive

6 configuration options · available in Rust, Java, Python, Node.js, Go

Quick start
import { Operator } from "opendal";

const operator = new Operator("aliyun-drive", {
drive_type: "...",
});
All configuration options (copy & trim)
Full reference
import { Operator } from "opendal";

const operator = new Operator("aliyun-drive", {
// The Root of this backend.
//
// All operations will happen under this root.
//
// Default to `/` if not set.
// root: "...",

// The access_token of this backend.
//
// Solution for client-only purpose. #4733
//
// Required if no client_id, client_secret and refresh_token are provided.
// access_token: "...",

// The client_id of this backend.
//
// Required if no access_token is provided.
// client_id: "...",

// The client_secret of this backend.
//
// Required if no access_token is provided.
// client_secret: "...",

// The refresh_token of this backend.
//
// Required if no access_token is provided.
// refresh_token: "...",

// The drive_type of this backend.
//
// All operations will happen under this type of drive.
//
// Available values are `default`, `backup` and `resource`.
//
// Fallback to default if not set or no other drives can be found.
drive_type: "...",
});

Every option is passed as a string key; OpenDAL parses it into the right type. For a map option, pass a string containing a JSON object whose values are strings, such as {"key":"value"}. Some services may require building the binding with the matching services-* feature enabled.

Configuration reference​

General6
KeyTypeRequiredDescription
rootstringnoThe Root of this backend. All operations will happen under this root. Default to / if not set.
access_tokenstringnoThe access_token of this backend. Solution for client-only purpose. #4733 Required if no client_id, client_secret and refresh_token are provided.
client_idstringnoThe client_id of this backend. Required if no access_token is provided.
client_secretstringnoThe client_secret of this backend. Required if no access_token is provided.
refresh_tokenstringnoThe refresh_token of this backend. Required if no access_token is provided.
drive_typestringyesThe drive_type of this backend. All operations will happen under this type of drive. Available values are default, backup and resource. Fallback to default if not set or no other drives can be found.

Entries reflect native capabilities declared by the aliyun-drive backend. Language bindings expose different subsets of options and may simulate operations client-side, and protocol-compatible endpoints may support only a subset of the declared features.

Stat1
CapabilitySupportDescription
stat NativeIndicates if the operator supports metadata retrieval operations.
Read2
CapabilitySupportDescription
read NativeIndicates if the operator supports read operations.
read_with_suffix NativeIndicates if suffix read operations are supported.
Write4
CapabilitySupportDescription
write NativeIndicates if the operator supports write operations.
write_can_multi NativeIndicates if multiple write operations can be performed on the same object.
write_multi_max_size
5 GiB
64-bit targets (usize::MAX on 32-bit)
Maximum size supported for multipart uploads. For example, AWS S3 supports up to 5GiB per part in multipart uploads.
write_multi_min_size
100 KiB
Minimum size required for multipart uploads (except for the last part). For example, AWS S3 requires at least 5MiB per part.
List2
CapabilitySupportDescription
list NativeIndicates if list operations are supported.
list_with_limit NativeIndicates if list operations support result limiting.
Delete1
CapabilitySupportDescription
delete NativeIndicates if delete operations are supported.
Copy1
CapabilitySupportDescription
copy NativeIndicates if copy operations are supported.
Other3
CapabilitySupportDescription
create_dir NativeIndicates if directory creation is supported.
rename NativeIndicates if rename operations are supported.
shared NativeIndicate if the operator supports shared access.