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
- 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 ¶
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
NewMinioClient - returns new minio client
func UploadAndReturnURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.