MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / configureBasicUploadAdapter

Function configureBasicUploadAdapter

tq/basic_upload.go:213–226  ·  view source on GitHub ↗
(m *concreteManifest)

Source from the content-addressed store, hash-verified

211}
212
213func configureBasicUploadAdapter(m *concreteManifest) {
214 m.RegisterNewAdapterFunc(BasicAdapterName, Upload, func(name string, dir Direction) Adapter {
215 switch dir {
216 case Upload:
217 bu := &basicUploadAdapter{newAdapterBase(m.fs, name, dir, nil)}
218 // self implements impl
219 bu.transferImpl = bu
220 return bu
221 case Download:
222 panic(tr.Tr.Get("Should never ask this function to download"))
223 }
224 return nil
225 })
226}
227
228func (a *basicUploadAdapter) makeRequest(t *Transfer, req *http.Request) (*http.Response, error) {
229 res, err := a.doHTTP(t, req)

Callers 1

newConcreteManifestFunction · 0.85

Calls 3

newAdapterBaseFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected