Documentation ¶
Index ¶
- func AddToTar(tarWriter *tar.Writer, path string) error
- func CheckOldFilesInS3(cfgValues configs.Config, s3Client StorageClient, isExtraClient bool)
- func CheckToolIsExist(tool string) bool
- func CleanupFilesAndTar(files []string)
- func SetStorageClient(cfgValues configs.Config) (StorageClient, StorageClient)
- func TarFiles(backupSource, currentDate, backupDir string, files []string) []string
- func UploadToS3(cfgValues configs.Config, tarFilename []string, ...)
- type AWSS3StorageClient
- func (c *AWSS3StorageClient) ListObjects(cfgValues configs.Config, isExtraClient bool) (interface{}, error)
- func (c *AWSS3StorageClient) RemoveFileFromS3(filename string, cfgValues configs.Config, isExtraClient bool) error
- func (c *AWSS3StorageClient) UploadFileToS3(filename string, cfgValues configs.Config, dailyPrefix string, ...) error
- type AzureStorageClient
- func (c *AzureStorageClient) ListObjects(cfgValues configs.Config, isExtraClient bool) (interface{}, error)
- func (c *AzureStorageClient) RemoveFileFromS3(filename string, cfgValues configs.Config, isExtraClient bool) error
- func (c *AzureStorageClient) UploadFileToS3(filename string, cfgValues configs.Config, dailyPrefix string, ...) error
- type FileMetadata
- type MinioStorageClient
- func (c *MinioStorageClient) ListObjects(cfgValues configs.Config, isExtraClient bool) (interface{}, error)
- func (c *MinioStorageClient) RemoveFileFromS3(filename string, cfgValues configs.Config, isExtraClient bool) error
- func (c *MinioStorageClient) UploadFileToS3(filename string, cfgValues configs.Config, dailyPrefix string, ...) error
- type OldObject
- type StorageClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOldFilesInS3 ¶
func CheckOldFilesInS3(cfgValues configs.Config, s3Client StorageClient, isExtraClient bool)
func CheckToolIsExist ¶
func CleanupFilesAndTar ¶
func CleanupFilesAndTar(files []string)
func SetStorageClient ¶
func SetStorageClient(cfgValues configs.Config) (StorageClient, StorageClient)
func UploadToS3 ¶
func UploadToS3(cfgValues configs.Config, tarFilename []string, s3Client, extraS3Client StorageClient)
Types ¶
type AWSS3StorageClient ¶
func (*AWSS3StorageClient) ListObjects ¶
func (c *AWSS3StorageClient) ListObjects(cfgValues configs.Config, isExtraClient bool) (interface{}, error)
func (*AWSS3StorageClient) RemoveFileFromS3 ¶
func (*AWSS3StorageClient) UploadFileToS3 ¶
type AzureStorageClient ¶
func (*AzureStorageClient) ListObjects ¶
func (c *AzureStorageClient) ListObjects(cfgValues configs.Config, isExtraClient bool) (interface{}, error)
func (*AzureStorageClient) RemoveFileFromS3 ¶
func (*AzureStorageClient) UploadFileToS3 ¶
type MinioStorageClient ¶
type MinioStorageClient struct {
Client *minio.Client
}
func (*MinioStorageClient) ListObjects ¶
func (c *MinioStorageClient) ListObjects(cfgValues configs.Config, isExtraClient bool) (interface{}, error)
func (*MinioStorageClient) RemoveFileFromS3 ¶
func (*MinioStorageClient) UploadFileToS3 ¶
type StorageClient ¶
type StorageClient interface { ListObjects(cfgValues configs.Config, isExtraClient bool) (interface{}, error) RemoveFileFromS3(filename string, cfgValues configs.Config, isExtraClient bool) error UploadFileToS3(filename string, cfgValues configs.Config, dailyPrefix string, isExtraClient bool) error }
func CreateStorageClient ¶
func CreateStorageClient(cfgValues configs.Config, provider string, isExtraClient bool) StorageClient
Click to show internal directories.
Click to hide internal directories.