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