minio

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

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

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

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