Documentation ¶
Index ¶
- func DeleteObjectInMinio(client *minio.Client, bucketName string, objectName string) error
- func DownloadObject(cleanPresignedURL string, outputFileLocation string) error
- func GetObjectFromMinio(client *minio.Client, bucketName string, objectName string) (*minio.Object, error)
- func GetPresignedURLForObject(client *minio.Client, bucketName string, objectName string, ...) (*url.URL, error)
- func NewMinioClient(endpoint string, accessKeyID string, secretAccessKey string, useSSL bool) (*minio.Client, error)
- func UploadAndReturnURL(client *minio.Client, bucketName string, fileFullPath string, ...) (*url.URL, error)
- func UploadFileToMinio(client *minio.Client, bucketName string, objectName string, reader io.Reader) (minio.UploadInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteObjectInMinio ¶
DeleteObjectInMinio - delete object in minio
func DownloadObject ¶
DownloadObject to download theoject
func GetObjectFromMinio ¶
func GetObjectFromMinio(client *minio.Client, bucketName string, objectName string) (*minio.Object, error)
GetObjectFromMinio - get file from minio
func GetPresignedURLForObject ¶
func GetPresignedURLForObject(client *minio.Client, bucketName string, objectName string, expiresIn time.Duration) (*url.URL, error)
GetPresignedURLForObject - Get signed url for object
func NewMinioClient ¶
func NewMinioClient(endpoint string, accessKeyID string, secretAccessKey string, useSSL bool) (*minio.Client, error)
NewMinioClient - returns new minio client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.