Versions in this module Expand all Collapse all v0 v0.1.0 May 10, 2026 Changes in this version + const FlushPkt + const MaxPktLine + const MsgArchived + const MsgPermDenied + const MsgRepoNotFound + const MsgSuspended + var ErrInvalidSSHPath = errors.New("ssh: invalid repo path") + var ErrSSHArchived = errors.New("ssh dispatch: archived") + var ErrSSHInternal = errors.New("ssh dispatch: internal error") + var ErrSSHPermDenied = errors.New("ssh dispatch: permission denied") + var ErrSSHRepoNotFound = errors.New("ssh dispatch: repo not found") + var ErrSSHSuspended = errors.New("ssh dispatch: suspended") + var ErrSubprocessFailed = errors.New("git subprocess exited non-zero") + var ErrUnknownSSHCommand = errors.New("ssh: unsupported command") + func Cmd(ctx context.Context, svc Service, gitDir string, advertiseRefs bool, ...) *exec.Cmd + func DrainStderr(cmd *exec.Cmd) func() []byte + func FriendlyMessageFor(err error, requestID string) string + func ParseRemoteIP(sshConnection string) string + func PrepareDispatch(ctx context.Context, deps SSHDispatchDeps, in SSHDispatchInput) (*SSHDispatchResult, ParsedSSHCommand, error) + func WriteFlush(w io.Writer) error + func WritePkt(w io.Writer, payload string) error + func WriteServiceAdvertisement(w io.Writer, service string) error + type ParsedSSHCommand struct + Owner string + Repo string + Service Service + func ParseSSHCommand(cmd string) (ParsedSSHCommand, error) + type SSHDispatchDeps struct + Pool *pgxpool.Pool + RepoFS *storage.RepoFS + type SSHDispatchInput struct + OriginalCommand string + RemoteIP string + UserID int64 + type SSHDispatchResult struct + Argv0 string + Argv0Args []string + Env []string + type Service string + const ReceivePack + const UploadPack