mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* storage: add context to storage.Exists and storage.Delete * eventlog: use context.TODO() * storage/gcp: reuse ctx
11 lines
274 B
Go
11 lines
274 B
Go
package storage
|
|
|
|
import "context"
|
|
|
|
// Deleter deletes module metadata and its source from underlying storage
|
|
type Deleter interface {
|
|
// Delete must return ErrVersionNotFound if the module/version are not
|
|
// found.
|
|
Delete(ctx context.Context, module, vsn string) error
|
|
}
|