Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmpty = errors.New("empty storage")
)
Functions ¶
Types ¶
type IStorage ¶
type IStorage interface {
Put(ctx context.Context, name string, r io.Reader) (key string, err error)
Get(ctx context.Context, name string) (rc io.ReadCloser, err error)
Delete(ctx context.Context, name string) (err error)
SignGetUrl(ctx context.Context, name string, expires int64, contentType string, disposition string) (s string, err error)
SignPutUrl(ctx context.Context, name string, expires int64) (s string, err error)
}
Click to show internal directories.
Click to hide internal directories.