Documentation ¶
Index ¶
- func CheckIfBucketExists(client *minio.Client, bucketName string) (bool, error)
- func CreateNewBucket(client *minio.Client, bucketName string) error
- 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 CheckIfBucketExists ¶ added in v0.1.2
func CreateNewBucket ¶ added in v0.1.2
Create new bucket
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.