minio

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfBucketExists added in v0.1.2

func CheckIfBucketExists(client *minio.Client, bucketName string) (bool, error)

func CreateNewBucket added in v0.1.2

func CreateNewBucket(client *minio.Client, bucketName string) error

Create new bucket

func DeleteObjectInMinio

func DeleteObjectInMinio(client *minio.Client, bucketName string, objectName string) error

DeleteObjectInMinio - delete object in minio

func DownloadObject

func DownloadObject(cleanPresignedURL string, outputFileLocation string) error

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

func UploadAndReturnURL

func UploadAndReturnURL(client *minio.Client, bucketName string, fileFullPath string, expiresIn time.Duration) (*url.URL, error)

UploadAndReturnURL to upload a file with exp date and return its URL

func UploadFileToMinio

func UploadFileToMinio(client *minio.Client, bucketName string, objectName string, reader io.Reader) (minio.UploadInfo, error)

UploadFileToMinio - uploads file to minio

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL