Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage interface { CreateBucket(ctx context.Context, bucketName string) error DeleteBucket(ctx context.Context, bucketName string) error ListBuckets(ctx context.Context) ([]string, error) UploadFile(ctx context.Context, bucketName, objectName string, file []byte) error DownloadFile(ctx context.Context, bucketName, objectName string, filePath string) error GetFilePath(ctx context.Context, bucketName, objectName string) (string, error) DeleteFile(ctx context.Context, bucketName, objectName string) error ListFiles(ctx context.Context, bucketName string) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.