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

Add CopyOptions #5005

Open
tustvold opened this issue Oct 30, 2023 · 1 comment
Open

Add CopyOptions #5005

tustvold opened this issue Oct 30, 2023 · 1 comment
Labels
enhancement Any new improvement worthy of a entry in the changelog object-store Object Store Interface

Comments

@tustvold
Copy link
Contributor

Largely a placeholder as I lack a motivating use-case for this functionality

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Following #4984 we now have put_opts and get_opts. It makes sense to expose the conditional copy semantics of many stores, in particular:

  • Source preconditions, such as If-Match
  • Destination preconditions, e.g. PutMode

Describe the solution you'd like

I would like a copy_opts method, which is called by default implementations of copy and copy_if_not_exists, and supports the common preconditions supported by object stores.

Describe alternatives you've considered

Additional context

@tustvold tustvold added enhancement Any new improvement worthy of a entry in the changelog object-store Object Store Interface labels Oct 30, 2023
@tustvold
Copy link
Contributor Author

tustvold commented Jan 1, 2024

This might also provide a mechanism to support cross-bucket copies, which currently are not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog object-store Object Store Interface
Projects
None yet
Development

No branches or pull requests

1 participant