Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedS3Provider - ErrUnsupportedS3Provider = errors.New("unsupported s3 provider") )
Functions ¶
This section is empty.
Types ¶
type CloudOSer ¶
type CloudOSer interface {
PutObject(objkey, filepath string) error
GetObject(objectKey, filePath string) error
DeleteObject(objkey string) error
}
CloudOSer is the interface that wraps the required methods to interact with cloud object storage.
type Config ¶
type Config struct {
ProviderType S3Provider
Endpoint string
AccessKey string
SecretKey string
UseSSL bool
BucketName string
Location string
}
Config configuration about cloud object storage.
type S3Provider ¶
type S3Provider string
S3Provider -
var ( // S3ProviderS3 - S3ProviderS3 S3Provider = "s3" // S3ProviderAliOSS - S3ProviderAliOSS S3Provider = "alioss" )
func Str2S3Provider ¶
func Str2S3Provider(value string) (S3Provider, error)
Str2S3Provider converts a string to S3Provider.
func (S3Provider) String ¶
func (p S3Provider) String() string
Click to show internal directories.
Click to hide internal directories.