interface.go 286 B

1234567891011121314151617
  1. package blob
  2. import (
  3. "context"
  4. "io"
  5. )
  6. type Store interface {
  7. Upload(ctx context.Context, key string, r io.Reader) error
  8. Download(ctx context.Context, key string, w Writer) error
  9. LatestKey(ctx context.Context) (string, error)
  10. }
  11. type Writer interface {
  12. io.Writer
  13. io.WriterAt
  14. }