Documentation
¶
Index ¶
- func DownloadFromS3WithPrefix(client *minio.Client, prefix, bucket string) (string, error)
- func GetS3Client(ctx context.Context, objectStore *v1.S3ObjectStore, ...) (*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
- type ObjectStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.