repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

pico / shared / storage
Eric Bower · 18 Feb 24

storage.go

 1package storage
 2
 3import (
 4	"io"
 5
 6	sst "github.com/picosh/pobj/storage"
 7)
 8
 9type StorageServe interface {
10	sst.ObjectStorage
11	ServeObject(bucket sst.Bucket, fpath string, opts *ImgProcessOpts) (io.ReadCloser, string, error)
12	GetObjectSize(bucket sst.Bucket, fpath string) (int64, error)
13}