2022-05-09 12:52:18 +00:00
|
|
|
package s3
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ObjectReader interface {
|
|
|
|
io.Reader
|
|
|
|
io.Seeker
|
|
|
|
io.ReaderAt
|
|
|
|
io.Closer
|
|
|
|
}
|
|
|
|
|
|
|
|
type S3 interface {
|
|
|
|
GetObject(ctx context.Context, key string) (ObjectReader, error)
|
2022-05-09 13:24:42 +00:00
|
|
|
KeyExists(ctx context.Context, key string) (bool, error)
|
2022-05-09 12:52:18 +00:00
|
|
|
}
|