Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectInfo ¶
type StorageProvider ¶
type StorageProvider interface {
ListObjects(ctx context.Context, bucketName string) (map[string]*ObjectInfo, error)
GetObject(ctx context.Context, bucketName, objectName string) (*ObjectInfo, io.ReadCloser, error)
UploadObject(ctx context.Context, bucketName, objectName string, reader io.Reader, size int64, contentType string) (*UploadInfo, error)
DeleteObject(ctx context.Context, bucketName, objectName string) error
BucketExists(ctx context.Context, bucketName string) (bool, error)
EnsureBucketExists(ctx context.Context, bucketName string) error
Close() error
}
Click to show internal directories.
Click to hide internal directories.