writekit/internal/storage/storage.go

15 lines
347 B
Go
Raw Normal View History

2026-01-09 00:16:46 +02:00
package storage
import (
"context"
"io"
"time"
)
type Client interface {
Upload(ctx context.Context, key string, body io.Reader, contentType string) error
Delete(ctx context.Context, key string) error
PresignUpload(ctx context.Context, key string, contentType string, expires time.Duration) (string, error)
PublicURL(key string) string
}