objectstore

package
v0.0.0-kuberlr.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 22 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

type ObjectStore

type ObjectStore struct {
	Endpoint                  string `json:"endpoint"`
	EndpointCA                string `json:"endpointCA"`
	InsecureTLSSkipVerify     string `json:"insecureTLSSkipVerify"`
	CredentialSecretName      string `json:"credentialSecretName"`
	CredentialSecretNamespace string `json:"credentialSecretNamespace"`
	BucketName                string `json:"bucketName"`
	Region                    string `json:"region"`
	Folder                    string `json:"folder"`
}

Jump to

Keyboard shortcuts

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