Versions in this module Expand all Collapse all v5 v5.12.1 Aug 22, 2024 v5.12.0 Aug 22, 2024 Changes in this version + var ErrTimeoutExceeded = errors.New("timeout exceeded") + func DecodeUploadPackResponse(r io.ReadCloser, req *packp.UploadPackRequest) (*packp.UploadPackResponse, error) + func NewClient(runner Commander) transport.Transport + func ServeReceivePack(cmd ServerCommand, s transport.ReceivePackSession) error + func ServeUploadPack(cmd ServerCommand, s transport.UploadPackSession) (err error) + type Command interface + Close func() error + Start func() error + StderrPipe func() (io.Reader, error) + StdinPipe func() (io.WriteCloser, error) + StdoutPipe func() (io.Reader, error) + type CommandKiller interface + Kill func() error + type Commander interface + Command func(cmd string, ep *transport.Endpoint, auth transport.AuthMethod) (Command, error) + type MockCommand struct + func (c MockCommand) Close() error + func (c MockCommand) Start() error + func (c MockCommand) StderrPipe() (io.Reader, error) + func (c MockCommand) StdinPipe() (io.WriteCloser, error) + func (c MockCommand) StdoutPipe() (io.Reader, error) + type MockCommander struct + func (c MockCommander) Command(cmd string, ep *transport.Endpoint, auth transport.AuthMethod) (Command, error) + type ServerCommand struct + Stderr io.Writer + Stdin io.Reader + Stdout io.WriteCloser