Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to list the supported services? #3329

Closed
tisonkun opened this issue Oct 18, 2023 · 0 comments · Fixed by #3331
Closed

How to list the supported services? #3329

tisonkun opened this issue Oct 18, 2023 · 0 comments · Fixed by #3331

Comments

@tisonkun
Copy link
Member

tisonkun commented Oct 18, 2023

Due to packaging difference, a specific opendal lib can support different range of services, it would be great that we provide a reflect method to list supported services; for example:

pub fn supported_services() -> Vec<String> {
  // returns ["memory", "fs", "s3", "redis", ...]
}

I want this features because packaging can be complicated in Java binding and I'd like to have a log for supported services for debugging.

Also, it's possible that users want to fallback to other scheme if the preferred one is not available - although it can be done with handling exception thrown by a failed initialization, it's not optimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant