-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request