dggarchivers3client

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Client

type S3Client struct {
	Endpoint    string
	AccessKey   string
	SecretKey   string
	Bucket      string
	SSL         bool
	MinioClient *minio.Client
}

S3Client Data Strucs

func NewS3Client

func NewS3Client(endpoint string, accessKey string, secretKey string, bucket string, useSSL bool) (*S3Client, error)

Initialize a new S3Client

func (*S3Client) DeleteBlob

func (s3 *S3Client) DeleteBlob(objectName string) error

Deletes a remote blob from Minio/S3

func (*S3Client) DownloadBlob

func (s3 *S3Client) DownloadBlob(objectName string, outputURI string) error

Downloads a blob from Minio/S3 to a local file

func (*S3Client) UploadBlob

func (s3 *S3Client) UploadBlob(localFileURI string, objectName string) error

Uploads a local file to Minio/S3

Jump to

Keyboard shortcuts

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