Versions in this module Expand all Collapse all v0 v0.2.0 Nov 23, 2026 Changes in this version type ErrorWithStatusCode + Code string v0.1.0 Oct 19, 2026 Changes in this version + var ErrExists = errors.New("storage: object exists") + var ErrNotFound = errors.New("storage: object not found") + type Bucket interface + DeleteObjects func(ctx context.Context, storagePaths []string) error + DownloadObject func(ctx context.Context, storagePath string, w io.Writer) (int64, error) + GetObject func(ctx context.Context, storagePath string) ([]byte, error) + GetObjectRange func(ctx context.Context, storagePath string, offset, length int64) ([]byte, error) + ListObjects func(ctx context.Context, prefix string) ([]string, error) + ObjectExists func(ctx context.Context, storagePath string) (bool, error) + PresignedURL func(ctx context.Context, storagePath string, expiration time.Duration) (string, error) + PutObject func(ctx context.Context, storagePath string, data []byte, opts PutOptions) error + UploadObject func(ctx context.Context, storagePath string, body io.Reader, opts PutOptions) error + type DeleteError struct + Failed map[string]error + func (e *DeleteError) Error() string + func (e *DeleteError) Unwrap() []error + type ErrorWithStatusCode struct + Err error + StatusCode int + func (e *ErrorWithStatusCode) Error() string + func (e *ErrorWithStatusCode) Unwrap() error + type PutOptions struct + ContentType string + IfAbsent bool + type Storage interface + DownloadFile func(ctx context.Context, storagePath, filepath string) (size int64, err error) + UploadFile func(ctx context.Context, storagePath, filepath string, opts PutOptions) (location string, size int64, err error)