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)
| 79 | // on the user identity. The corresponding value is used to match identities and |
| 80 | // credentials. |
| 81 | func 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 |
| 91 | func NewBridge(repo *cache.RepoCache, target string, name string) (*Bridge, error) { |