You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create azblob backend builder.letmut builder:Builder = azblob::Backend::build();// Set the root for azblob, all operations will happen under this root.//// NOTE: the root must be absolute path.
builder.root("/path/to/dir");// Set the container name, this is required.
builder.container("test");// Set the endpoint, this is required.//// For examples:// - "http://127.0.0.1:10000/devstoreaccount1"// - "https://accountname.blob.core.windows.net"
builder.endpoint("http://127.0.0.1:10000/devstoreaccount1");// Set the account_name and account_key.//// OpenDAL will try load credential from the env.// If credential not set and no valid credential in env, OpenDAL will// send request without signing like anonymous user.
builder.account_name("devstoreaccount1");
builder.account_key("Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==");// Build the `Accessor`.let accessor:Arc<dynAccessor> = builder.finish().await?;// `Accessor` provides the low level APIs, we will use `Operator` normally.let op:Operator = Operator::new(accessor);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This release introduces the following new features:
Object::create API
Now, we can create an empty file or directory without a trick!
Read
Object::create
to know more!Create empty file
Create dir
Native decompress read support
Now, we can read a compressed file natively!
Enable
compress
features:Read with
decompress_read()
ordecompress_reader()
!Azblob support
With the help from @D2Lark, we have official support for azblob now!
Refer to azblob for more information.
What's Changed
Full Changelog: v0.4.2...v0.5.0
This discussion was created from the release v0.5.0.
Beta Was this translation helpful? Give feedback.
All reactions