diff options
Diffstat (limited to 'bridge/core')
-rw-r--r-- | bridge/core/interfaces.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bridge/core/interfaces.go b/bridge/core/interfaces.go index f20f1642..47dbd63b 100644 --- a/bridge/core/interfaces.go +++ b/bridge/core/interfaces.go @@ -13,26 +13,26 @@ type BridgeImpl interface { // Target return the target of the bridge (e.g.: "github") Target() string - // LoginMetaKey return the metadata key used to store the remote bug-tracker login - // on the user identity. The corresponding value is used to match identities and - // credentials. - LoginMetaKey() string + // NewImporter return an Importer implementation if the import is supported + NewImporter() Importer - // The set of the BridgeParams fields supported - ValidParams() map[string]interface{} + // NewExporter return an Exporter implementation if the export is supported + NewExporter() Exporter // Configure handle the user interaction and return a key/value configuration // for future use Configure(repo *cache.RepoCache, params BridgeParams) (Configuration, error) + // The set of the BridgeParams fields supported + ValidParams() map[string]interface{} + // ValidateConfig check the configuration for error ValidateConfig(conf Configuration) error - // NewImporter return an Importer implementation if the import is supported - NewImporter() Importer - - // NewExporter return an Exporter implementation if the export is supported - NewExporter() Exporter + // LoginMetaKey return the metadata key used to store the remote bug-tracker login + // on the user identity. The corresponding value is used to match identities and + // credentials. + LoginMetaKey() string } type Importer interface { |