| 10 | type Configuration map[string]string |
| 11 | |
| 12 | type BridgeImpl interface { |
| 13 | // Target return the target of the bridge (e.g.: "github") |
| 14 | Target() string |
| 15 | |
| 16 | // NewImporter return an Importer implementation if the import is supported |
| 17 | NewImporter() Importer |
| 18 | |
| 19 | // NewExporter return an Exporter implementation if the export is supported |
| 20 | NewExporter() Exporter |
| 21 | |
| 22 | // Configure handle the user interaction and return a key/value configuration |
| 23 | // for future use. |
| 24 | Configure(repo *cache.RepoCache, params BridgeParams, interactive bool) (Configuration, error) |
| 25 | |
| 26 | // The set of the BridgeParams fields supported |
| 27 | ValidParams() map[string]interface{} |
| 28 | |
| 29 | // ValidateConfig check the configuration for error |
| 30 | ValidateConfig(conf Configuration) error |
| 31 | |
| 32 | // LoginMetaKey return the metadata key used to store the remote bug-tracker login |
| 33 | // on the user identity. The corresponding value is used to match identities and |
| 34 | // credentials. |
| 35 | LoginMetaKey() string |
| 36 | } |
| 37 | |
| 38 | type Importer interface { |
| 39 | Init(ctx context.Context, repo *cache.RepoCache, conf Configuration) error |
no outgoing calls
no test coverage detected