Documentation ¶
Index ¶
Constants ¶
View Source
const (
ProviderName = string(v1beta2.BackupStorageTypeS3)
)
Variables ¶
This section is empty.
Functions ¶
func NewS3BackupProvider ¶
func NewS3BackupProvider(config *backup.StorageConfig) backup.Storage
Types ¶
type ClientS3Wrapper ¶
ClientS3Wrapper is a wrapper for S3 client that provides cleanup functionality.
func NewClientFromSecret ¶
func NewClientFromSecret(kubecli kubernetes.Interface, namespace, endpoint, awsSecret string, forcePathStyle bool) (w *ClientS3Wrapper, err error)
NewClientFromSecret returns a S3 client based on given k8s secret containing aws credentials.
func (*ClientS3Wrapper) Close ¶
func (w *ClientS3Wrapper) Close()
Close cleans up all intermediate resources for creating S3 client.
Click to show internal directories.
Click to hide internal directories.