package
1.9.0-dev
Repository: https://github.com/vlorc/gitea.git
Documentation: pkg.go.dev

# Functions

BatchHandler provides the batch api.
ContentMatcher provides a mux.MatcherFunc that only allows requests that contain an Accept header with the contentMediaType.
GetListLockHandler list locks.
IsPointerFile will return a partially filled LFSMetaObject if the provided byte slice is a pointer file.
MetaMatcher provides a mux.MatcherFunc that only allows requests that contain an Accept header with the metaMediaType.
ObjectOidHandler is the main request routing entry point into LFS server functions.
PostHandler instructs the client how to upload data.
PostLockHandler create lock.
PutHandler receives data from the client and puts it into the content store.
ReadMetaObject will read a models.LFSMetaObject and return a reader.
ReadPointerFile will return a partially filled LFSMetaObject if the provided reader is a pointer file.
Represent takes a RequestVars and Meta and turns it into a Representation suitable for json encoding.
UnLockHandler delete locks.
VerifyHandler verify oid and its size from the content store.
VerifyLockHandler list locks for verification.

# Structs

BatchResponse contains multiple object metadata Representation structures for use with the batch API.
BatchVars contains multiple RequestVars processed in one batch operation.
ContentStore provides a simple file system based storage.
ObjectError defines the JSON structure returned to the client in case of an error.
Representation is object metadata as seen by clients of the lfs server.
RequestVars contain variables from the HTTP request.