mirror of
https://github.com/gomods/athens
synced 2026-02-03 13:20:30 +00:00
* Storage: split storage.Getter interface * no need to clean up whats not there * unimplement rdmb getter * unimplement rdmb getter * make storage tests happy * comment out rdmbs from tests * fix tests * fix stuff we're removing anyway * PR fixes * oops * fix gcp exists
14 lines
338 B
Go
14 lines
338 B
Go
package storage
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
)
|
|
|
|
// Getter gets module metadata and its source from underlying storage
|
|
type Getter interface {
|
|
Info(ctx context.Context, module, vsn string) ([]byte, error)
|
|
GoMod(ctx context.Context, module, vsn string) ([]byte, error)
|
|
Zip(ctx context.Context, module, vsn string) (io.ReadCloser, error)
|
|
}
|