Fs represents a remote b2 server
| 332 | |
| 333 | // Fs represents a remote b2 server |
| 334 | type Fs struct { |
| 335 | name string // name of this remote |
| 336 | root string // the path we are working on if any |
| 337 | opt Options // parsed config options |
| 338 | ci *fs.ConfigInfo // global config |
| 339 | features *fs.Features // optional features |
| 340 | srv *rest.Client // the connection to the b2 server |
| 341 | rootBucket string // bucket part of root (if any) |
| 342 | rootDirectory string // directory part of root (if any) |
| 343 | cache *bucket.Cache // cache for bucket creation status |
| 344 | bucketIDMutex sync.Mutex // mutex to protect _bucketID |
| 345 | _bucketID map[string]string // the ID of the bucket we are working on |
| 346 | bucketTypeMutex sync.Mutex // mutex to protect _bucketType |
| 347 | _bucketType map[string]string // the Type of the bucket we are working on |
| 348 | info api.AuthorizeAccountResponse // result of authorize call |
| 349 | uploadMu sync.Mutex // lock for upload variable |
| 350 | uploads map[string][]*api.GetUploadURLResponse // Upload URLs by buckedID |
| 351 | authMu sync.Mutex // lock for authorizing the account |
| 352 | pacer *fs.Pacer // To pace and retry the API calls |
| 353 | uploadToken *pacer.TokenDispenser // control concurrency |
| 354 | } |
| 355 | |
| 356 | // Object describes a b2 object |
| 357 | type Object struct { |
nothing calls this directly
no outgoing calls
no test coverage detected