blob: 5336e7a8b6682d0cb2c3f375eb1e44a84c99f98f (
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
27
28
29
|
package core
import (
"github.com/MichaelMure/git-bug/cache"
"github.com/MichaelMure/git-bug/repository"
)
type Configuration map[string]string
type Importer interface {
ImportAll(repo *cache.RepoCache, conf Configuration) error
Import(repo *cache.RepoCache, conf Configuration, id string) error
}
type Exporter interface {
ExportAll(repo *cache.RepoCache, conf Configuration) error
Export(repo *cache.RepoCache, conf Configuration, id string) error
}
type BridgeImpl interface {
Name() string
// Configure handle the user interaction and return a key/value configuration
// for future use
Configure(repo repository.RepoCommon) (Configuration, error)
Importer() Importer
Exporter() Exporter
}
|