mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* Athens: move storage.NotFound to errors.NotFound * see where things went wrong * empty means unexpected * GCP: replace AlreadyExists err * resolve conflicts * Errors: change not found name * fix build
11 lines
267 B
Go
11 lines
267 B
Go
package storage
|
|
|
|
import "context"
|
|
|
|
// Deleter deletes module metadata and its source from underlying storage
|
|
type Deleter interface {
|
|
// Delete must return ErrNotFound if the module/version are not
|
|
// found.
|
|
Delete(ctx context.Context, module, vsn string) error
|
|
}
|