Documentation ¶
Index ¶
- Variables
- type Azure
- func (a *Azure) DeleteObject(ctx context.Context, objectName string) error
- func (a *Azure) GetObject(ctx context.Context, name string) (io.ReadCloser, error)
- func (a *Azure) GetPrefix() string
- func (a *Azure) ListObjects(ctx context.Context, prefix string) ([]string, error)
- func (a *Azure) PutObject(ctx context.Context, name string, data io.Reader, _ int64) error
- func (a *Azure) SetPrefix(prefix string)
- type AzureOptions
- type GCSOptions
- type NewClientFunc
- type Options
- type S3
- func (s *S3) DeleteObject(ctx context.Context, objectName string) error
- func (s *S3) GetObject(ctx context.Context, objectName string) (io.ReadCloser, error)
- func (s *S3) GetPrefix() string
- func (s *S3) ListObjects(ctx context.Context, prefix string) ([]string, error)
- func (s *S3) PutObject(ctx context.Context, name string, data io.Reader, size int64) error
- func (s *S3) SetPrefix(prefix string)
- type S3Options
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrObjectNotFound = errors.New("object not found")
Functions ¶
This section is empty.
Types ¶
type Azure ¶
type Azure struct {
// contains filtered or unexported fields
}
Azure is a type for working with Azure Blob storages
func (*Azure) DeleteObject ¶
func (*Azure) ListObjects ¶
type AzureOptions ¶
type AzureOptions struct { StorageAccount string AccessKey string Endpoint string Container string Prefix string }
func (*AzureOptions) Type ¶
func (o *AzureOptions) Type() apiv1alpha1.BackupStorageType
type GCSOptions ¶
type GCSOptions struct { Endpoint string AccessKeyID string SecretAccessKey string BucketName string Prefix string VerifyTLS bool }
func (*GCSOptions) Type ¶
func (o *GCSOptions) Type() apiv1alpha1.BackupStorageType
type Options ¶
type Options interface {
Type() apiv1alpha1.BackupStorageType
}
func GetOptionsFromBackup ¶
func GetOptionsFromBackup(ctx context.Context, cl client.Client, cluster *apiv1alpha1.PerconaServerMySQL, backup *apiv1alpha1.PerconaServerMySQLBackup) (Options, error)
func GetOptionsFromBackupConfig ¶
func GetOptionsFromBackupConfig(cfg *xtrabackup.BackupConfig) (Options, error)
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
S3 is a type for working with S3 storages
func (*S3) ListObjects ¶
type S3Options ¶
type S3Options struct { Endpoint string AccessKeyID string SecretAccessKey string BucketName string Prefix string Region string VerifyTLS bool }
func (*S3Options) Type ¶
func (o *S3Options) Type() apiv1alpha1.BackupStorageType
type Storage ¶
type Storage interface { GetObject(ctx context.Context, objectName string) (io.ReadCloser, error) PutObject(ctx context.Context, name string, data io.Reader, size int64) error ListObjects(ctx context.Context, prefix string) ([]string, error) DeleteObject(ctx context.Context, objectName string) error SetPrefix(prefix string) GetPrefix() string }
Click to show internal directories.
Click to hide internal directories.