func init() { for _, region := range []string{ "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2", "sa-east-1", "cn-north-1", "us-gov-west-1", } { validRegions[region] = struct{}{} } for _, objectAcl := range []string{ s3.ObjectCannedACLPrivate, s3.ObjectCannedACLPublicRead, s3.ObjectCannedACLPublicReadWrite, s3.ObjectCannedACLAuthenticatedRead, s3.ObjectCannedACLAwsExecRead, s3.ObjectCannedACLBucketOwnerRead, s3.ObjectCannedACLBucketOwnerFullControl, } { validObjectAcls[objectAcl] = struct{}{} } // Register this as the default s3 driver in addition to s3aws factory.Register("s3", &s3DriverFactory{}) factory.Register(driverName, &s3DriverFactory{}) }
func init() { for _, region := range []string{ "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2", "sa-east-1", } { validRegions[region] = struct{}{} } // Register this as the default s3 driver in addition to s3aws factory.Register("s3", &s3DriverFactory{}) factory.Register(driverName, &s3DriverFactory{}) }
func init() { factory.Register(driverName, &swiftDriverFactory{}) }
func init() { factory.Register(driverName, &ipfsDriverFactory{}) }
func init() { factory.Register(driverName, &filesystemDriverFactory{}) }
func init() { factory.Register(driverName, &inMemoryDriverFactory{}) }
func init() { factory.Register(driverName, &azureDriverFactory{}) }
func init() { factory.Register(driverName, &speedyDriverFactory{}) }
func init() { registry.Register(DriverName, factory{}) }
func init() { factory.Register(driverName, &kodoDriverFactory{}) }