Documentation
¶
Index ¶
- func CreateBucket(client *minio.Client, bucketName string) error
- func RegisterMinioClient(cfg *configs.Configuration) (*minio.Client, error)
- func SetPermission(client *minio.Client, bucketName string) error
- type MinioAdapter
- func (ma *MinioAdapter) DeleteData(objectName string) error
- func (ma *MinioAdapter) DeleteDataList() error
- func (ma *MinioAdapter) GetData(objectName string) (file io.Reader)
- func (ma *MinioAdapter) GetDataList() (file []io.Reader)
- func (ma *MinioAdapter) UploadData(objectName string, data io.Reader) error
- type ResourceAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
func RegisterMinioClient ¶
func RegisterMinioClient(cfg *configs.Configuration) (*minio.Client, error)
func SetPermission ¶
Types ¶
type MinioAdapter ¶
type MinioAdapter struct {
// contains filtered or unexported fields
}
func (*MinioAdapter) DeleteData ¶
func (ma *MinioAdapter) DeleteData(objectName string) error
func (*MinioAdapter) DeleteDataList ¶
func (ma *MinioAdapter) DeleteDataList() error
func (*MinioAdapter) GetDataList ¶
func (ma *MinioAdapter) GetDataList() (file []io.Reader)
func (*MinioAdapter) UploadData ¶
func (ma *MinioAdapter) UploadData(objectName string, data io.Reader) error
type ResourceAdapter ¶
type ResourceAdapter interface { GetData(objectName string) (file io.Reader) GetDataList() (file []io.Reader) UploadData(objectName string, file io.Reader) error DeleteData(objectName string) error DeleteDataList() error }
func NewMinioAdapter ¶
func NewMinioAdapter(c *minio.Client, bucketName string, cfg *configs.Configuration) ResourceAdapter
Click to show internal directories.
Click to hide internal directories.