MCPcopy Index your code
hub / github.com/git-bug/git-bug / BridgeImpl

Interface BridgeImpl

bridge/core/interfaces.go:12–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10type Configuration map[string]string
11
12type 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
38type Importer interface {
39 Init(ctx context.Context, repo *cache.RepoCache, conf Configuration) error

Callers 13

RegisterFunction · 0.65
validateParamsFunction · 0.65
BridgeAuthFunction · 0.65
runBridgeAuthFunction · 0.65
runBridgeAuthShowFunction · 0.65
ComplexityMethod · 0.65
getImporterMethod · 0.65
getExporterMethod · 0.65
ConfigureMethod · 0.65
validateParamsFunction · 0.65
LoadBridgeFunction · 0.65
ConfigureMethod · 0.65

Implementers 4

Githubbridge/github/github.go
Launchpadbridge/launchpad/launchpad.go
Gitlabbridge/gitlab/gitlab.go
Jirabridge/jira/jira.go

Calls

no outgoing calls

Tested by

no test coverage detected