11 configuration options · available in Rust, Python, Go
use opendal::Operator;
let operator = Operator::via_iter("gcs-grpc", [
("bucket".to_string(), "...".to_string()),
])?;
use opendal::Operator;
let operator = Operator::via_iter("gcs-grpc", [
// Root path for all operations.
// ("root".to_string(), "...".to_string()),
// Bucket name.
("bucket".to_string(), "...".to_string()),
// gRPC endpoint.
// ("endpoint".to_string(), "...".to_string()),
// OAuth 2.0 scope.
// ("scope".to_string(), "...".to_string()),
// Service account used by the GCE metadata server.
// ("service_account".to_string(), "...".to_string()),
// Base64-encoded service account credential.
// ("credential".to_string(), "...".to_string()),
// Path to a service account credential file.
// ("credential_path".to_string(), "...".to_string()),
// Send requests without authentication.
// ("skip_signature".to_string(), "true".to_string()),
// Disable the GCE metadata credential provider.
// ("disable_vm_metadata".to_string(), "true".to_string()),
// Disable environment and well-known credential loading.
// ("disable_config_load".to_string(), "true".to_string()),
// OAuth 2.0 access token.
// ("token".to_string(), "...".to_string()),
])?;
Every option is passed as a string key; OpenDAL parses it into the right type. Some services may require building the binding with the matching services-* feature enabled.
| Key | Type | Required | Description |
|---|---|---|---|
root | string | no | Root path for all operations. |
bucket | string | yes | Bucket name. |
endpoint | string | no | gRPC endpoint. |
scope | string | no | OAuth 2.0 scope. |
service_account | string | no | Service account used by the GCE metadata server. |
credential | string | no | Base64-encoded service account credential. |
credential_path | string | no | Path to a service account credential file. |
skip_signature | bool | no | Send requests without authentication. |
disable_vm_metadata | bool | no | Disable the GCE metadata credential provider. |
disable_config_load | bool | no | Disable environment and well-known credential loading. |
token | string | no | OAuth 2.0 access token. |