diff options
Diffstat (limited to 'forged/internal/hooki/hooki.go')
-rw-r--r-- | forged/internal/hooki/hooki.go | 21 |
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 +} |