Skip to content

Possibility to exchange metadata from source to destination #26

@a-mesin

Description

@a-mesin

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 request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions