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

Possibility to exchange metadata from source to destination #26

Open
a-mesin opened this issue Nov 11, 2023 · 1 comment
Open

Possibility to exchange metadata from source to destination #26

a-mesin opened this issue Nov 11, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@a-mesin
Copy link
Member

a-mesin commented Nov 11, 2023

We need a way to provide the destination resource metadata/contextual data from the source resource.

Example use case

filesystem -> filesystem backup where the target file should be named just like the source file suffixed with a user specified string f.e. timestamp.

Rough idea for the implementation

Instead of running the io.Copy directly in the backup command we introduce a new struct (f.e. called BackupProcessor) which takes in the reader and writer for the io.Copy function and in addition to that arbitrary metadata (maybe a map[string]any or we even can decide on a fixed set of possible metadata for each destination type?) and populates the writer with that metadata before running the io.Copy

@a-mesin a-mesin added the enhancement New feature or request label Nov 11, 2023
@a-mesin a-mesin self-assigned this Nov 11, 2023
Copy link

Thanks for your contribution 🔥 We will take a look asap 🚀

In the meantime we recommend each new contribute to have a look at the contribution guide.

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

No branches or pull requests

1 participant