gitssh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitRequestTransfer

type GitRequestTransfer func(ch ssh.Channel, req *ssh.Request, perms *ssh.Permissions, gitCmd, repoPath string) error

func LocalGitRequestTransfer

func LocalGitRequestTransfer(shellPath string) GitRequestTransfer

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
}

type PublicKeyCallback

type PublicKeyCallback func(ssh.ConnMetadata, ssh.PublicKey) (*ssh.Permissions, error)

type Server

type Server struct {
	RepoDir            string
	ShellPath          string
	PublicKeyCallback  PublicKeyCallback
	GitRequestTransfer GitRequestTransfer

	Signer ssh.Signer
	Logger Logger
}

func (*Server) Serve

func (srv *Server) Serve(lis net.Listener) error

Jump to

Keyboard shortcuts

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