Documentation ¶
Index ¶
- func DownloadFromS3WithPrefix(client *minio.Client, prefix, bucket string) (string, error)
- func GetS3Client(ctx context.Context, objectStore *v1.S3ObjectStore, namespace string, ...) (*minio.Client, error)
- func SetS3Service(bc *v1.S3ObjectStore, accessKey, secretKey string, useSSL bool) (*minio.Client, error)
- func UploadBackupFile(svc *minio.Client, bucketName, fileName, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetS3Client ¶
func GetS3Client(ctx context.Context, objectStore *v1.S3ObjectStore, namespace string, 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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.