package storage
import "git.sr.ht/~pingoo/stdx/storage"
Index ¶
Types ¶
type Storage ¶
type Storage interface { BasePath() string CopyObject(ctx context.Context, from, to string) error DeleteObject(ctx context.Context, key string) error GetObject(ctx context.Context, key string) (io.ReadCloser, error) GetObjectSize(ctx context.Context, key string) (int64, error) // GetPresignedUploadUrl(ctx context.Context, key string, size uint64) (string, error) PutObject(ctx context.Context, key, contentType string, size int64, object io.Reader) error DeleteObjectsWithPrefix(ctx context.Context, prefix string) (err error) }
Source Files ¶
storage.go
Directories ¶
Path | Synopsis |
---|---|
storage/filesystem | |
storage/minio | |
storage/s3 |
- Version
- v0.0.0-20240218134121-094174641f6e (latest)
- Published
- Feb 18, 2024
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 4 months ago –
Tools for package owners.