Versions in this module Expand all Collapse all v1 v1.5.0 Aug 8, 2023 v1.4.0 Aug 8, 2023 v1.3.0 Aug 8, 2023 v1.2.0 Jul 12, 2023 v1.0.0 Jul 4, 2023 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 + CaBundle []byte + Host string + InsecureSkipTLS bool + Password string + Path string + Port int + Protocol string + Proxy ProxyOptions + User string + func NewEndpoint(endpoint string) (*Endpoint, error) + func (u *Endpoint) String() string + type ProxyOptions struct + Password string + URL string + Username string + func (o *ProxyOptions) FullURL() (*url.URL, error) + func (o *ProxyOptions) Validate() error + type ReceivePackSession interface + ReceivePack func(context.Context, *packp.ReferenceUpdateRequest) (*packp.ReportStatus, error) + type Session interface + AdvertisedReferences func() (*packp.AdvRefs, error) + AdvertisedReferencesContext func(context.Context) (*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)