MCPcopy
hub / github.com/git-lfs/git-lfs / adapterBase

Struct adapterBase

tq/adapterbase.go:19–35  ·  view source on GitHub ↗

adapterBase implements the common functionality for core adapters which process transfers with N workers handling an oid each, and which wait for authentication to succeed on one worker before proceeding

Source from the content-addressed store, hash-verified

17// process transfers with N workers handling an oid each, and which wait for
18// authentication to succeed on one worker before proceeding
19type adapterBase struct {
20 fs *fs.Filesystem
21 name string
22 direction Direction
23 transferImpl transferImplementation
24 apiClient *lfsapi.Client
25 remote string
26 jobChan chan *job
27 debugging bool
28 cb ProgressCallback
29 // WaitGroup to sync the completion of all workers
30 workerWait sync.WaitGroup
31 // WaitGroup to sync the completion of all in-flight jobs
32 jobWait *sync.WaitGroup
33 // WaitGroup to serialise the first transfer response to perform login if needed
34 authWait sync.WaitGroup
35}
36
37// transferImplementation must be implemented to provide the actual upload/download
38// implementation for all core transfer approaches that use adapterBase for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected