Delete modules in case of breaking changes or invalid checksums, compatibility with go mod download (#10)

* add module invalidation via DELETE request
* add go mod download vcs provider
This commit is contained in:
Serge Zaitsev
2019-10-07 08:10:02 +02:00
committed by GitHub
parent 0868adad0a
commit 7a37ec05c4
7 changed files with 181 additions and 61 deletions

View File

@@ -14,6 +14,7 @@ type logger = func(...interface{})
type Store interface {
Put(ctx context.Context, snapshot Snapshot) error
Get(ctx context.Context, module string, version vcs.Version) (Snapshot, error)
Del(ctx context.Context, module string, version vcs.Version) error
Close() error
}