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
| 17 | // process transfers with N workers handling an oid each, and which wait for |
| 18 | // authentication to succeed on one worker before proceeding |
| 19 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected