minioclient

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinioClient

type MinioClient struct {
	// contains filtered or unexported fields
}

func New

func New(endpoint, accessKey, secretKey string) (*MinioClient, error)

func (*MinioClient) DownloadFile

func (c *MinioClient) DownloadFile(bucketName, objectName string) ([]byte, error)

func (*MinioClient) GetFileUrl

func (c *MinioClient) GetFileUrl(bucketName, objectName string) (string, error)

func (*MinioClient) HealthCheck

func (c *MinioClient) HealthCheck() error

func (*MinioClient) UploadFile

func (c *MinioClient) UploadFile(bucketName, objectName, file string) (string, error)

Jump to

Keyboard shortcuts

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