sshgit

package
v0.0.0-...-abfb1be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2023 License: Unlicense Imports: 12 Imported by: 0

Documentation

Overview

Package sshgit provides functionality for a git server over SSH. It's hacky and incomplete, a proof of concept.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is an SSH git server.

func New

func New(private ssh.Signer, dir string) *Server

New creates a new SSH git server, using private as the SSH signer, and dir as root directory for git repositories.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) error

ListenAndServe listens on the TCP network address addr and starts the server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL