aboutsummaryrefslogtreecommitdiff
path: root/forged/internal/hooki/hooki.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-13 11:22:58 +0800
committerRunxi Yu <me@runxiyu.org>2025-08-13 19:48:32 +0800
commit6cda7644e983c5c2735bb73a5594a2659e87659a (patch)
treee6a0c815d0dd5014e628738f431123039db5d882 /forged/internal/hooki/hooki.go
parentRemove the mess (diff)
downloadforge-6cda7644e983c5c2735bb73a5594a2659e87659a.tar.gz
forge-6cda7644e983c5c2735bb73a5594a2659e87659a.tar.zst
forge-6cda7644e983c5c2735bb73a5594a2659e87659a.zip
Config placement adjustments
Diffstat (limited to 'forged/internal/hooki/hooki.go')
-rw-r--r--forged/internal/hooki/hooki.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/forged/internal/hooki/hooki.go b/forged/internal/hooki/hooki.go
new file mode 100644
index 0000000..ae26846
--- /dev/null
+++ b/forged/internal/hooki/hooki.go
@@ -0,0 +1,21 @@
+package hooki
+
+import (
+ "go.lindenii.runxiyu.org/forge/forged/internal/cmap"
+ "github.com/gliderlabs/ssh"
+)
+
+type Pool cmap.Map[string, hookinfo]
+
+type hookinfo struct {
+ session ssh.Session
+ pubkey string
+ directAccess bool
+ repoPath string
+ userID int
+ userType string
+ repoID int
+ groupPath []string
+ repoName string
+ contribReq string
+}