Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IFiles ¶
type IFiles interface {
List(ctx context.Context, bucket string) ([]s3.ListItem, error)
Download(ctx context.Context, bucket, filePath string) ([]byte, error)
Upload(ctx context.Context, bucket, fileName string, content []byte) (string, error)
UploadStream(ctx context.Context, bucketName, filePath string, reader io.Reader) (string, error)
Delete(ctx context.Context, bucket string, filePaths []string) error
Exists(ctx context.Context, bucketName, filePath string) (bool, error)
ListBuckets(ctx context.Context) ([]types.Bucket, error)
CreateBucket(ctx context.Context, name string) error
BucketExists(ctx context.Context, bucket string) (bool, error)
DeleteBucket(ctx context.Context, bucket string) error
}
IFiles files interface
Click to show internal directories.
Click to hide internal directories.