objectstore

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFromS3WithPrefix

func DownloadFromS3WithPrefix(client *minio.Client, prefix, bucket string) (string, error)

func GetS3Client

func GetS3Client(ctx context.Context, objectStore *v1.S3ObjectStore, dynamicClient dynamic.Interface) (*minio.Client, error)

TODO: namespace should be backup.NS only if backup CR contains storage location, for using operator's s3, use chart's ns

func SetS3Service

func SetS3Service(bc *v1.S3ObjectStore, accessKey, secretKey string, useSSL bool) (*minio.Client, error)

func UploadBackupFile

func UploadBackupFile(svc *minio.Client, bucketName, fileName, filePath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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