You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "FrankYang0529 (via GitHub)" <gi...@apache.org> on 2026/06/07 11:36:29 UTC
[I] new feature: add copy options for C and Go bindings [opendal]
FrankYang0529 opened a new issue, #7706:
URL: https://github.com/apache/opendal/issues/7706
### Feature Description
Expose the Rust core's `copy_with_options` API in the C and Go bindings, enabling conditional and configurable copy operations.
- `if_not_exists`
- `if_match`
- `source_version`
- `source_content_length_hint`
- `concurrent`
- `chunk`
### Problem and Solution
The Rust core already supports `Operator::copy_with()` with these options, but the C and Go bindings only expose the basic `Operator::copy()` without any options. This limits users of the C/Go bindings to unconditional copy operations only.
The solution is to implement:
1. C binding:
- `opendal_copy_options` struct with new/construct/free/setter functions
- `opendal_operator_copy_with()` function
2. Go binding:
- Functional options: `CopyWithIfNotExists`, `CopyWithIfMatch`, `CopyWithSourceVersion`, `CopyWithSourceContentLengthHint`, `CopyWithConcurrent`, `CopyWithChunk`
- `Operator.Copy(src, dest, opts...)` with option support
### Additional Context
_No response_
### Are you willing to contribute to the development of this feature?
- [x] Yes, I am willing to contribute to the development of this feature.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] new feature: add copy options for C and Go bindings [opendal]
Posted by "dentiny (via GitHub)" <gi...@apache.org>.
dentiny closed issue #7706: new feature: add copy options for C and Go bindings
URL: https://github.com/apache/opendal/issues/7706
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org