3 Commits
Author SHA1 Message Date
Julius Kriukas 171b82b951 Cover subdir ignore code path 2019-12-12 15:42:56 +02:00
Julius KriukasandJulius Kriukas 6592810a89 Add httpfs.New() constructor with delayed errors
This PR adds a new httpfs source driver constructor New(). It is
identical to the WithInstance() constructor but will postpone any errors
until the driver is actually being used.

This allows clients of this package to have less error checks without
loosing correctness.

In addition this PR adds more tests, improves test code coverage, and
makes golinter happy by removing deferred Close call.
2019-12-06 15:55:07 +02:00
Julius KriukasandJulius Kriukas 0e11b25181 Add http.FileSystem migration source driver support
This PR adds a new migration source driver capable of reading files from
any source that implements http.FileSystem interface.

Notable http.FileSystem interface implementations:

* http.Dir() - wrapper over local file-system
* github.com/shurcooL/vfsgen

Because user of this package is responsible for getting an
implementation of http.FileSystem, this driver does not support creating
instances from driver URLs.
2019-12-06 15:55:07 +02:00