aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/interfaces.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-06 11:55:16 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-06 11:55:16 +0200
commit64133ee5ba4b03e2f7f2f2161b1d551a97bd0d80 (patch)
tree9459d5c83f38441985c003a1a306783c47ddfaf8 /bridge/core/interfaces.go
parent558e149b2524864beff3912f44fdb887edeb7ac5 (diff)
downloadgit-bug-64133ee5ba4b03e2f7f2f2161b1d551a97bd0d80.tar.gz
github: deal with the deleted user case where github return a null actor
Diffstat (limited to 'bridge/core/interfaces.go')
-rw-r--r--bridge/core/interfaces.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/bridge/core/interfaces.go b/bridge/core/interfaces.go
index 79b75606..4836dab3 100644
--- a/bridge/core/interfaces.go
+++ b/bridge/core/interfaces.go
@@ -18,19 +18,21 @@ type BridgeImpl interface {
// ValidateConfig check the configuration for error
ValidateConfig(conf Configuration) error
- // Importer return an Importer implementation if the import is supported
- Importer() Importer
+ // NewImporter return an Importer implementation if the import is supported
+ NewImporter() Importer
- // Exporter return an Exporter implementation if the export is supported
- Exporter() Exporter
+ // NewExporter return an Exporter implementation if the export is supported
+ NewExporter() Exporter
}
type Importer interface {
- ImportAll(repo *cache.RepoCache, conf Configuration) error
- Import(repo *cache.RepoCache, conf Configuration, id string) error
+ Init(conf Configuration) error
+ ImportAll(repo *cache.RepoCache) error
+ Import(repo *cache.RepoCache, id string) error
}
type Exporter interface {
- ExportAll(repo *cache.RepoCache, conf Configuration) error
- Export(repo *cache.RepoCache, conf Configuration, id string) error
+ Init(conf Configuration) error
+ ExportAll(repo *cache.RepoCache) error
+ Export(repo *cache.RepoCache, id string) error
}