aboutsummaryrefslogtreecommitdiff
path: root/export/exporter.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-18 16:00:08 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-18 16:00:08 +0200
commit04563efa9c0dc1f6a36094dfd884ae432cf46b29 (patch)
treebe5a78647bec2a6d5812fb8b61b4ac4fcd3744b7 /export/exporter.go
parent5539220a8839519becd45b63be65ed86fa9286a4 (diff)
downloaddna-backup-04563efa9c0dc1f6a36094dfd884ae432cf46b29.tar.gz
dna-backup-04563efa9c0dc1f6a36094dfd884ae432cf46b29.zip
add intermediate export package no to make repo dependant on dna
Diffstat (limited to 'export/exporter.go')
-rw-r--r--export/exporter.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/export/exporter.go b/export/exporter.go
new file mode 100644
index 0000000..208fbd7
--- /dev/null
+++ b/export/exporter.go
@@ -0,0 +1,24 @@
+package export
+
+import "io"
+
+type Version struct {
+ Input
+ Output
+}
+
+type Input struct {
+ Chunks io.WriteCloser
+ Recipe io.WriteCloser
+ Files io.WriteCloser
+}
+
+type Output struct {
+ Chunks io.ReadCloser
+ Recipe io.ReadCloser
+ Files io.ReadCloser
+}
+
+type Exporter interface {
+ ExportVersion() (input Input, end <-chan bool)
+}