aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/core')
-rw-r--r--bridge/core/bridge.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/bridge/core/bridge.go b/bridge/core/bridge.go
new file mode 100644
index 00000000..3ff8404b
--- /dev/null
+++ b/bridge/core/bridge.go
@@ -0,0 +1,26 @@
+package core
+
+import "github.com/MichaelMure/git-bug/cache"
+
+type Common interface {
+ // Configure handle the user interaction and return a key/value configuration
+ // for future use
+ Configure() (map[string]string, error)
+}
+
+type Importer interface {
+ Common
+ ImportAll(repo *cache.RepoCache) error
+ Import(repo *cache.RepoCache, id string) error
+}
+
+type Exporter interface {
+ Common
+ ExportAll(repo *cache.RepoCache) error
+ Export(repo *cache.RepoCache, id string) error
+}
+
+type NotSupportedImporter struct{}
+type NotSupportedExporter struct{}
+
+// persist