Versions in this module Expand all Collapse all v6 v6.1.0 Apr 24, 2021 Changes in this version + const Create + const Delete + const Invalid + const Update + var ErrEmpty = errors.New("empty update-request message") + var ErrEmptyAdvRefs = errors.New("empty advertised-ref message") + var ErrEmptyCommands = errors.New("commands cannot be empty") + var ErrEmptyInput = errors.New("empty input") + var ErrMalformedCommand = errors.New("malformed command") + var ErrUploadPackResponseNotDecoded = errors.New("upload-pack-response should be decoded") + func NewErrUnexpectedData(msg string, data []byte) error + type Action string + type AdvRefs struct + Capabilities *capability.List + Head *plumbing.Hash + Peeled map[string]plumbing.Hash + Prefix [][]byte + References map[string]plumbing.Hash + Shallows []plumbing.Hash + func NewAdvRefs() *AdvRefs + func (a *AdvRefs) AddReference(r *plumbing.Reference) error + func (a *AdvRefs) AllReferences() (memory.ReferenceStorage, error) + func (a *AdvRefs) Decode(r io.Reader) error + func (a *AdvRefs) Encode(w io.Writer) error + func (a *AdvRefs) IsEmpty() bool + type Command struct + Name plumbing.ReferenceName + New plumbing.Hash + Old plumbing.Hash + func (c *Command) Action() Action + type CommandStatus struct + ReferenceName plumbing.ReferenceName + Status string + func (s *CommandStatus) Error() error + type Depth interface + IsZero func() bool + type DepthCommits int + func (d DepthCommits) IsZero() bool + type DepthReference string + func (d DepthReference) IsZero() bool + type DepthSince time.Time + func (d DepthSince) IsZero() bool + type ErrUnexpectedData struct + Data []byte + Msg string + func (err *ErrUnexpectedData) Error() string + type ReferenceUpdateRequest struct + Capabilities *capability.List + Commands []*Command + Packfile io.ReadCloser + Progress sideband.Progress + Shallow *plumbing.Hash + func NewReferenceUpdateRequest() *ReferenceUpdateRequest + func NewReferenceUpdateRequestFromCapabilities(adv *capability.List) *ReferenceUpdateRequest + func (req *ReferenceUpdateRequest) Decode(r io.Reader) error + func (req *ReferenceUpdateRequest) Encode(w io.Writer) error + type ReportStatus struct + CommandStatuses []*CommandStatus + UnpackStatus string + func NewReportStatus() *ReportStatus + func (s *ReportStatus) Decode(r io.Reader) error + func (s *ReportStatus) Encode(w io.Writer) error + func (s *ReportStatus) Error() error + type ServerResponse struct + ACKs []plumbing.Hash + func (r *ServerResponse) Decode(reader *bufio.Reader, isMultiACK bool) error + func (r *ServerResponse) Encode(w io.Writer) error + type ShallowUpdate struct + Shallows []plumbing.Hash + Unshallows []plumbing.Hash + func (r *ShallowUpdate) Decode(reader io.Reader) error + func (r *ShallowUpdate) Encode(w io.Writer) error + type UploadHaves struct + Haves []plumbing.Hash + func (u *UploadHaves) Encode(w io.Writer, flush bool) error + type UploadPackRequest struct + func NewUploadPackRequest() *UploadPackRequest + func NewUploadPackRequestFromCapabilities(adv *capability.List) *UploadPackRequest + func (r *UploadPackRequest) IsEmpty() bool + type UploadPackResponse struct + func NewUploadPackResponse(req *UploadPackRequest) *UploadPackResponse + func NewUploadPackResponseWithPackfile(req *UploadPackRequest, pf io.ReadCloser) *UploadPackResponse + func (r *UploadPackResponse) Close() error + func (r *UploadPackResponse) Decode(reader io.ReadCloser) error + func (r *UploadPackResponse) Encode(w io.Writer) (err error) + func (r *UploadPackResponse) Read(p []byte) (int, error) + type UploadRequest struct + Capabilities *capability.List + Depth Depth + Shallows []plumbing.Hash + Wants []plumbing.Hash + func NewUploadRequest() *UploadRequest + func NewUploadRequestFromCapabilities(adv *capability.List) *UploadRequest + func (req *UploadRequest) Decode(r io.Reader) error + func (req *UploadRequest) Encode(w io.Writer) error + func (req *UploadRequest) Validate() error Other modules containing this package github.com/egibert/go-git github.com/egibert/go-git/v5 github.com/egibert/go-git/v8