package
5.0.0-20241215183534-c7a8253f2873
Repository: https://github.com/grahambrooks/go-git.git
Documentation: pkg.go.dev
# Packages
Package capability defines the server and client capabilities.
Package sideband implements a sideband mutiplex/demultiplexer.
# Functions
FilterBlobLimit omits blobs of size at least n bytes (when prefix is BlobLimitPrefixNone), n kibibytes (when prefix is BlobLimitPrefixKibi), n mebibytes (when prefix is BlobLimitPrefixMebi) or n gibibytes (when prefix is BlobLimitPrefixGibi).
FilterBlobNone omits all blobs.
FilterCombine combines multiple Filter values together.
FilterObjectType omits all objects which are not of the requested type t.
FilterTreeDepth omits all blobs and trees whose depth from the root tree is larger or equal to depth.
NewAdvRefs returns a pointer to a new AdvRefs value, ready to be used.
NewErrUnexpectedData returns a new ErrUnexpectedData containing the data and the message given.
New returns a pointer to a new ReferenceUpdateRequest value.
NewReferenceUpdateRequestFromCapabilities returns a pointer to a new ReferenceUpdateRequest value, the request capabilities are filled with the most optimal ones, based on the adv value (advertised capabilities), the ReferenceUpdateRequest contains no commands
It does set the following capabilities: - agent - report-status - ofs-delta - ref-delta - delete-refs
It leaves up to the user to add the following capabilities later: - atomic - ofs-delta - side-band - side-band-64k - quiet - push-cert.
NewReportStatus creates a new ReportStatus message.
NewUploadPackRequest creates a new UploadPackRequest and returns a pointer.
NewUploadPackRequestFromCapabilities creates a new UploadPackRequest and returns a pointer.
NewUploadPackResponse create a new UploadPackResponse instance, the request being responded by the response is required.
NewUploadPackResponseWithPackfile creates a new UploadPackResponse instance, and sets its packfile reader.
NewUploadRequest returns a pointer to a new UploadRequest value, ready to be used.
NewUploadRequestFromCapabilities returns a pointer to a new UploadRequest value, the request capabilities are filled with the most optimal ones, based on the adv value (advertised capabilities), the UploadRequest generated it has no wants or shallows and an infinite depth.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
ErrEmptyAdvRefs is returned by Decode if it gets an empty advertised references message.
No description provided by the author
ErrEmptyInput is returned by Decode if the input is empty.
ErrInvalidGitProtoRequest is returned by Decode if the input is not a valid git protocol request.
No description provided by the author
ErrNilWriter is returned when a nil writer is passed to the encoder.
No description provided by the author
ErrUploadPackResponseNotDecoded is returned if Read is called without decoding first.
# Structs
AdvRefs values represent the information transmitted on an advertised-refs message.
No description provided by the author
CommandStatus is the status of a reference in a report status.
ErrUnexpectedData represents an unexpected data decoding a message.
GitProtoRequest is a command request for the git protocol.
No description provided by the author
ReferenceUpdateRequest values represent reference upload requests.
ReportStatus is a report status message, as used in the git-receive-pack process whenever the 'report-status' capability is negotiated.
ServerResponse object acknowledgement from upload-pack service.
No description provided by the author
UploadHaves is a message to signal the references that a client has in a upload-pack.
UploadPackRequest represents a upload-pack request.
UploadPackResponse contains all the information responded by the upload-pack service, the response implements io.ReadCloser that allows to read the packfile directly from it.
UploadRequest values represent the information transmitted on a upload-request message.
# Interfaces
Depth values stores the desired depth of the requested packfile: see DepthCommit, DepthSince and DepthReference.
# Type aliases
No description provided by the author
No description provided by the author
DepthCommits values stores the maximum number of requested commits in the packfile.
DepthReference requests only commits not to found in the specified reference.
DepthSince values requests only commits newer than the specified time.
Filter values enable the partial clone capability which causes the server to omit objects that match the filter.