blob: 3ff8404b8e733f1c8d7d33835bd725ea6d4f14b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|