Documentation
¶
Index ¶
- func DeleteObjectsInBucket(...) error
- func GetBucketRegion(bucket string) (string, error)
- func IsObjectsInBucket(...) (bool, error)
- func IsSnapshotExisted(cloudProvider, cloudCredentialsFile, bslBucket, bslConfig, backupName string, ...) error
- func IsValidS3URLScheme(s3URL string) bool
- func ObjectsShouldBeInBucket(...) error
- func ObjectsShouldNotBeInBucket(...) error
- func SnapshotsShouldBeCreatedInCloud(cloudProvider, cloudCredentialsFile, bslBucket, bslConfig, backupName string, ...) error
- func SnapshotsShouldNotExistInCloud(cloudProvider, cloudCredentialsFile, bslBucket, bslConfig, backupName string, ...) error
- type AWSStorage
- func (s AWSStorage) CreateSession(...) (*session.Session, error)
- func (s AWSStorage) DeleteItem(client *s3.S3, deleteObjectV2Input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
- func (s AWSStorage) DeleteObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) error
- func (s AWSStorage) GetMinioBucketSize(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig string) (int64, error)
- func (s AWSStorage) IsObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) (bool, error)
- func (s AWSStorage) IsSnapshotExisted(cloudCredentialsFile, bslConfig, backupObject string, ...) error
- func (s AWSStorage) ListItems(client *s3.S3, objectsV2Input *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)
- type AzureStorage
- func (s AzureStorage) DeleteObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) error
- func (s AzureStorage) IsObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupName string) (bool, error)
- func (s AzureStorage) IsSnapshotExisted(cloudCredentialsFile, bslConfig, backupName string, ...) error
- type GCSStorage
- func (s GCSStorage) DeleteObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) error
- func (s GCSStorage) IsObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) (bool, error)
- func (s GCSStorage) IsSnapshotExisted(cloudCredentialsFile, bslConfig, backupObject string, ...) error
- type ObjectsInStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteObjectsInBucket ¶
func GetBucketRegion ¶
GetBucketRegion returns the AWS region that a bucket is in, or an error if the region cannot be determined.
func IsObjectsInBucket ¶
func IsSnapshotExisted ¶
func IsValidS3URLScheme ¶
IsValidS3URLScheme returns true if the scheme is http:// or https:// and the url parses correctly, otherwise, return false
func ObjectsShouldBeInBucket ¶
Types ¶
type AWSStorage ¶
type AWSStorage string
func (AWSStorage) CreateSession ¶
func (s AWSStorage) CreateSession(credentialProfile, credentialsFile, enableSharedConfig, caCert, bucket, bslPrefix, bslConfig string) (*session.Session, error)
func (AWSStorage) DeleteItem ¶
func (s AWSStorage) DeleteItem(client *s3.S3, deleteObjectV2Input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
func (AWSStorage) DeleteObjectsInBucket ¶
func (s AWSStorage) DeleteObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) error
func (AWSStorage) GetMinioBucketSize ¶
func (s AWSStorage) GetMinioBucketSize(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig string) (int64, error)
func (AWSStorage) IsObjectsInBucket ¶
func (s AWSStorage) IsObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) (bool, error)
func (AWSStorage) IsSnapshotExisted ¶
func (s AWSStorage) IsSnapshotExisted(cloudCredentialsFile, bslConfig, backupObject string, snapshotCheck test.SnapshotCheckPoint) error
func (AWSStorage) ListItems ¶
func (s AWSStorage) ListItems(client *s3.S3, objectsV2Input *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)
type AzureStorage ¶
type AzureStorage string
func (AzureStorage) DeleteObjectsInBucket ¶
func (s AzureStorage) DeleteObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) error
func (AzureStorage) IsObjectsInBucket ¶
func (s AzureStorage) IsObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupName string) (bool, error)
func (AzureStorage) IsSnapshotExisted ¶
func (s AzureStorage) IsSnapshotExisted(cloudCredentialsFile, bslConfig, backupName string, snapshotCheck SnapshotCheckPoint) error
type GCSStorage ¶
type GCSStorage string
func (GCSStorage) DeleteObjectsInBucket ¶
func (s GCSStorage) DeleteObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) error
func (GCSStorage) IsObjectsInBucket ¶
func (s GCSStorage) IsObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) (bool, error)
func (GCSStorage) IsSnapshotExisted ¶
func (s GCSStorage) IsSnapshotExisted(cloudCredentialsFile, bslConfig, backupObject string, snapshotCheck test.SnapshotCheckPoint) error
type ObjectsInStorage ¶
type ObjectsInStorage interface { IsObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) (bool, error) DeleteObjectsInBucket(cloudCredentialsFile, bslBucket, bslPrefix, bslConfig, backupObject string) error IsSnapshotExisted(cloudCredentialsFile, bslConfig, backupName string, snapshotCheck SnapshotCheckPoint) error }
Click to show internal directories.
Click to hide internal directories.