Initial commit: Open sourcing all of the Maple Open Technologies code.

This commit is contained in:
Bartlomiej Mika 2025-12-02 14:33:08 -05:00
commit 755d54a99d
2010 changed files with 448675 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package s3
type S3ObjectStorageConfigurationProvider interface {
GetAccessKey() string
GetSecretKey() string
GetEndpoint() string
GetRegion() string
GetBucketName() string
GetIsPublicBucket() bool
}
type s3ObjectStorageConfigurationProviderImpl struct {
accessKey string
secretKey string
endpoint string
region string
bucketName string
isPublicBucket bool
}
func NewS3ObjectStorageConfigurationProvider(accessKey, secretKey, endpoint, region, bucketName string, isPublicBucket bool) S3ObjectStorageConfigurationProvider {
return &s3ObjectStorageConfigurationProviderImpl{
accessKey: accessKey,
secretKey: secretKey,
endpoint: endpoint,
region: region,
bucketName: bucketName,
isPublicBucket: isPublicBucket,
}
}
func (s *s3ObjectStorageConfigurationProviderImpl) GetAccessKey() string {
return s.accessKey
}
func (s *s3ObjectStorageConfigurationProviderImpl) GetSecretKey() string {
return s.secretKey
}
func (s *s3ObjectStorageConfigurationProviderImpl) GetEndpoint() string {
return s.endpoint
}
func (s *s3ObjectStorageConfigurationProviderImpl) GetRegion() string {
return s.region
}
func (s *s3ObjectStorageConfigurationProviderImpl) GetBucketName() string {
return s.bucketName
}
func (s *s3ObjectStorageConfigurationProviderImpl) GetIsPublicBucket() bool {
return s.isPublicBucket
}