Example #1
0
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{})
}
Example #2
0
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{})
}
Example #3
0
func init() {
	factory.Register(driverName, &swiftDriverFactory{})
}
Example #4
0
func init() {
	factory.Register(driverName, &ipfsDriverFactory{})
}
Example #5
0
func init() {
	factory.Register(driverName, &filesystemDriverFactory{})
}
Example #6
0
func init() {
	factory.Register(driverName, &inMemoryDriverFactory{})
}
Example #7
0
func init() {
	factory.Register(driverName, &azureDriverFactory{})
}
Example #8
0
func init() {
	factory.Register(driverName, &speedyDriverFactory{})
}
Example #9
0
func init() {
	registry.Register(DriverName, factory{})
}
Example #10
0
func init() {
	factory.Register(driverName, &kodoDriverFactory{})
}