Versions in this module Expand all Collapse all v0 v0.0.1 Jul 30, 2018 Changes in this version + func Download(ctx context.Context, timeout time.Duration, baseURL, module, version string) (*storage.Version, error) + func Dummy(fs afero.Fs, repoRoot string) error + func Fetch(ctx context.Context, s storage.Backend, fetcher Fetcher, mod, version string, ...) error + func MakeZip(fs afero.Fs, dir, module, version string) *io.PipeReader + func NewErrModuleAlreadyFetched(op errors.Op, mod, ver string) error + func NewErrModuleExcluded(module string) error + type Downloader func(ctx context.Context, timeout time.Duration, baseURL, module, version string) (*storage.Version, error) + type ErrModuleExcluded struct + func (e *ErrModuleExcluded) Error() string + type Fetcher interface + Fetch func(mod, ver string) (Ref, error) + func NewGoGetFetcher(goBinaryName string, fs afero.Fs) Fetcher + type Filter struct + func NewFilter() *Filter + func (f *Filter) AddRule(path string, rule FilterRule) + func (f *Filter) ShouldProcess(path string) bool + type FilterRule int + const Default + const Exclude + const Include + type Ref interface + Clear func() error + Read func() (*storage.Version, error)