diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-21 12:54:48 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-21 12:54:48 +0200 |
commit | 1c86a66cbe0f4871dd40b8352c1f1b2de97e8442 (patch) | |
tree | ce01ce3382b2d3d471c962530169193e3d4898e0 /bridge/core | |
parent | 7c63417e8f1b3556b524b6f5bd66d93e534381cd (diff) | |
download | git-bug-1c86a66cbe0f4871dd40b8352c1f1b2de97e8442.tar.gz |
bridge: add the beginning of a github importer
Diffstat (limited to 'bridge/core')
-rw-r--r-- | bridge/core/bridge.go | 26 |
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 |