aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/bridge.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-01-07 22:07:25 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:18:28 +0100
commit26f0152384f77d2bfd16c6762f5618bc966809a6 (patch)
tree82854841d2865e1bb52e08beeb392507495e7525 /bridge/core/bridge.go
parentdb893494bb1492a3d9e32787a5ada1dd8f639ef3 (diff)
downloadgit-bug-26f0152384f77d2bfd16c6762f5618bc966809a6.tar.gz
WIP
Diffstat (limited to 'bridge/core/bridge.go')
-rw-r--r--bridge/core/bridge.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/bridge/core/bridge.go b/bridge/core/bridge.go
index f606d2da..7891763f 100644
--- a/bridge/core/bridge.go
+++ b/bridge/core/bridge.go
@@ -32,12 +32,13 @@ var bridgeImpl map[string]reflect.Type
// BridgeParams holds parameters to simplify the bridge configuration without
// having to make terminal prompts.
type BridgeParams struct {
- Owner string
- Project string
- URL string
- BaseURL string
- CredPrefix string
- TokenRaw string
+ Owner string // owner of the repo (Github)
+ Project string // name of the repo (Github, Launchpad)
+ URL string // complete URL of a repo (Github, Gitlab, Launchpad)
+ BaseURL string // base URL for self-hosted instance ( Gitlab)
+ CredPrefix string // ID prefix of the credential to use (Github, Gitlab)
+ TokenRaw string // pre-existing token to use (Github, Gitlab)
+ Login string // username for the passed credential (Github, Gitlab)
}
// Bridge is a wrapper around a BridgeImpl that will bind low-level