aboutsummaryrefslogtreecommitdiff
path: root/forged/internal/hooki/hooki.go
blob: ae2684603f16d231fa73d8d49c64622e4801aac7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}