Versions in this module Expand all Collapse all v5 v5.1.1 Oct 6, 2020 Changes in this version + const ReceivePackServiceName + const UploadPackServiceName + var ErrAlreadyConnected = errors.New("session already established") + var ErrAuthenticationRequired = errors.New("authentication required") + var ErrAuthorizationFailed = errors.New("authorization failed") + var ErrEmptyRemoteRepository = errors.New("remote repository is empty") + var ErrEmptyUploadPackRequest = errors.New("empty git-upload-pack given") + var ErrInvalidAuthMethod = errors.New("invalid auth method") + var ErrRepositoryNotFound = errors.New("repository not found") + var UnsupportedCapabilities = []capability.Capability + func FilterUnsupportedCapabilities(list *capability.List) + type AuthMethod interface + Name func() string + type Endpoint struct + Host string + Password string + Path string + Port int + Protocol string + User string + func NewEndpoint(endpoint string) (*Endpoint, error) + func (u *Endpoint) String() string + type ReceivePackSession interface + ReceivePack func(context.Context, *packp.ReferenceUpdateRequest) (*packp.ReportStatus, error) + type Session interface + AdvertisedReferences func() (*packp.AdvRefs, error) + type Transport interface + NewReceivePackSession func(*Endpoint, AuthMethod) (ReceivePackSession, error) + NewUploadPackSession func(*Endpoint, AuthMethod) (UploadPackSession, error) + type UploadPackSession interface + UploadPack func(context.Context, *packp.UploadPackRequest) (*packp.UploadPackResponse, error) Other modules containing this package github.com/jesseduffield/go-git