File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed
Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ func New(
4949 // S3CloudStorageConfig struct fields:
5050 Endpoint string ,
5151 Bucket string ,
52+ BucketLookupType minio.BucketLookupType ,
5253 Prefix string ,
5354 Credentials * credentials.Credentials ,
5455 DisableSSL bool ,
@@ -69,7 +70,8 @@ func New(
6970
7071 // Initialize minio client with credentials
7172 opts := & minio.Options {
72- Creds : Credentials ,
73+ Creds : Credentials ,
74+ BucketLookup : BucketLookupType ,
7375
7476 Region : Region ,
7577 Secure : ! DisableSSL ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ go_library(
2020 "//cache/s3proxy:go_default_library" ,
2121 "@com_github_azure_azure_sdk_for_go_sdk_azcore//:go_default_library" ,
2222 "@com_github_azure_azure_sdk_for_go_sdk_azidentity//:go_default_library" ,
23+ "@com_github_minio_minio_go_v7//:go_default_library" ,
2324 "@com_github_minio_minio_go_v7//pkg/credentials:go_default_library" ,
2425 "@com_github_urfave_cli_v2//:go_default_library" ,
2526 "@in_gopkg_yaml_v3//:go_default_library" ,
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ func (c *Config) setProxy() error {
4949 c .ProxyBackend = s3proxy .New (
5050 c .S3CloudStorage .Endpoint ,
5151 c .S3CloudStorage .Bucket ,
52+ c .S3CloudStorage .BucketLookupType ,
5253 c .S3CloudStorage .Prefix ,
5354 creds ,
5455 c .S3CloudStorage .DisableSSL ,
Original file line number Diff line number Diff line change 66
77 "github.com/buchgr/bazel-remote/v2/cache/s3proxy"
88
9+ "github.com/minio/minio-go/v7"
910 "github.com/minio/minio-go/v7/pkg/credentials"
1011)
1112
@@ -24,6 +25,8 @@ type S3CloudStorageConfig struct {
2425 KeyVersion * int `yaml:"key_version"`
2526 AWSProfile string `yaml:"aws_profile"`
2627 AWSSharedCredentialsFile string `yaml:"aws_shared_credentials_file"`
28+
29+ BucketLookupType minio.BucketLookupType `yaml:"bucket_lookup_type"`
2730}
2831
2932func (s3c S3CloudStorageConfig ) GetCredentials () (* credentials.Credentials , error ) {
You can’t perform that action at this time.
0 commit comments