bridge.go

 1package core
 2
 3import "github.com/MichaelMure/git-bug/cache"
 4
 5type Common interface {
 6	// Configure handle the user interaction and return a key/value configuration
 7	// for future use
 8	Configure() (map[string]string, error)
 9}
10
11type Importer interface {
12	Common
13	ImportAll(repo *cache.RepoCache) error
14	Import(repo *cache.RepoCache, id string) error
15}
16
17type Exporter interface {
18	Common
19	ExportAll(repo *cache.RepoCache) error
20	Export(repo *cache.RepoCache, id string) error
21}
22
23type NotSupportedImporter struct{}
24type NotSupportedExporter struct{}
25
26// persist