18 lines
208 B
Go
18 lines
208 B
Go
|
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)
|
||
|
}
|