MCPcopy Create free account
hub / github.com/git-bug/git-bug / LoginMetaKey

Function LoginMetaKey

bridge/core/bridge.go:81–88  ·  view source on GitHub ↗

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.

(target string)

Source from the content-addressed store, hash-verified

79// on the user identity. The corresponding value is used to match identities and
80// credentials.
81func LoginMetaKey(target string) (string, error) {
82 metaKey, ok := bridgeLoginMetaKey[target]
83 if !ok {
84 return "", fmt.Errorf("unknown bridge target %v", target)
85 }
86
87 return metaKey, nil
88}
89
90// Instantiate a new Bridge for a repo, from the given target and name
91func NewBridge(repo *cache.RepoCache, target string, name string) (*Bridge, error) {

Callers 1

LoginMetaKeyFunction · 0.92

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected