You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 thebackup
command we introduce a new struct (f.e. calledBackupProcessor
) which takes in the reader and writer for theio.Copy
function and in addition to that arbitrary metadata (maybe amap[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 theio.Copy
The text was updated successfully, but these errors were encountered: