Fs represents a remote uloz.to storage
| 103 | |
| 104 | // Fs represents a remote uloz.to storage |
| 105 | type Fs struct { |
| 106 | name string // name of this remote |
| 107 | root string // the path we are working on |
| 108 | opt Options // parsed options |
| 109 | features *fs.Features // optional features |
| 110 | rest *rest.Client // REST client with authentication headers set, used to communicate with API endpoints |
| 111 | cdn *rest.Client // REST client without authentication headers set, used for CDN payload upload/download |
| 112 | dirCache *dircache.DirCache // Map of directory path to directory id |
| 113 | pacer *fs.Pacer // pacer for API calls |
| 114 | } |
| 115 | |
| 116 | // NewFs constructs a Fs from the path, container:path |
| 117 | func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected