Versions in this module Expand all Collapse all v0 v0.1.0 Nov 29, 2026 Changes in this version + const DefaultHandshake + const DefaultIdle + const DefaultMaxLifetime + const MaxAuthTries + const MaxCommandLen + const MaxEnvValueLen + const MaxPreExec + var ErrCommand = errors.New(...) + var ErrPush = errors.New("push over SSH is not enabled on this forge; it serves clone and fetch only") + func ExecService(cmd string) string + func LoadHostKey(path string) (ssh.Signer, error) + func ParseExec(cmd string) (gitrepo.Name, error) + type Authenticator interface + AuthenticateSSHKey func(ctx context.Context, fingerprint string) (login string, err error) + type Server struct + Auth Authenticator + Handshake time.Duration + HostKey ssh.Signer + Idle time.Duration + Log *slog.Logger + MaxConns int + MaxConnsPerHost int + MaxLifetime time.Duration + Push *gitpush.Pusher + Repos *gitrepo.Service + RequestTimeout time.Duration + Sessions *gitrepo.Limiter + func (s *Server) Disconnect(login string) + func (s *Server) Serve(ctx context.Context, ln net.Listener) error