Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviderConfigFromEnv ¶
func GetProviderConfigFromEnv() map[string]interface{}
GetProviderConfigFromEnv returns the provider config
Types ¶
type AzureBlobStorageConfig ¶
type AzureBlobStorageConfig struct { Container string Prefix string AccountName string AccountKey string }
func GetAzureBlogStorageConfig ¶
func GetAzureBlogStorageConfig(config map[string]interface{}) *AzureBlobStorageConfig
type AzureBlobStorageManager ¶
type AzureBlobStorageManager struct {
Config *AzureBlobStorageConfig
}
func (*AzureBlobStorageManager) Download ¶
func (manager *AzureBlobStorageManager) Download(output *os.File, key string) error
func (*AzureBlobStorageManager) Upload ¶
func (manager *AzureBlobStorageManager) Upload(file *os.File, prefixes ...string) (UploadOutput, error)
Upload passed in file to Azure Blob Storage
type FileManager ¶
type FileManager interface { Upload(*os.File, ...string) (UploadOutput, error) Download(*os.File, string) error }
FileManager inplements all upload methods
func New ¶
func New(settings *SettingsT) (FileManager, error)
New returns FileManager backed by configured privider
type GCSConfig ¶
func GetGCSConfig ¶
type GCSManager ¶
type GCSManager struct {
Config *GCSConfig
}
func (*GCSManager) Download ¶
func (manager *GCSManager) Download(output *os.File, key string) error
func (*GCSManager) Upload ¶
func (manager *GCSManager) Upload(file *os.File, prefixes ...string) (UploadOutput, error)
type MinioConfig ¶
type MinioConfig struct { Bucket string Prefix string EndPoint string AccessKeyID string SecretAccessKey string UseSSL bool }
func GetMinioConfig ¶
func GetMinioConfig(config map[string]interface{}) *MinioConfig
type MinioManager ¶
type MinioManager struct {
Config *MinioConfig
}
func (*MinioManager) Download ¶
func (manager *MinioManager) Download(file *os.File, key string) error
func (*MinioManager) ObjectUrl ¶
func (manager *MinioManager) ObjectUrl(objectName string) string
func (*MinioManager) Upload ¶
func (manager *MinioManager) Upload(file *os.File, prefixes ...string) (UploadOutput, error)
type S3Config ¶
func GetS3Config ¶
type UploadOutput ¶
type UploadOutput struct {
Location string
}
Click to show internal directories.
Click to hide internal directories.