You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support for registering custom index clients, added new methods to object stores (#2049)
* support for registering custom index clients, added new methods to object store
NewIndexClient accepts factory methods for creating custom index clients
added new methods to object stores to work on objects(io.Reader) instead of just chunks
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
* splitted s3 config from dynamodb config and updated docs
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
* removed unwanted code
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
* added List method to azure and addressed other feedback in PR review
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
* addressed some of the feedback from PR review
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
* changes suggested from PR review
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
* fixed an issue with reporting errors in PutObject for GCS object store
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
f.Var(&cfg.S3, "s3.url", "S3 endpoint URL with escaped Key and Secret encoded. "+
138
-
"If only region is specified as a host, proper endpoint will be deduced. Use inmemory:///<bucket-name> to use a mock in-memory implementation.")
139
-
f.BoolVar(&cfg.S3ForcePathStyle, "s3.force-path-style", false, "Set this to `true` to force the request to use path-style addressing.")
140
-
f.StringVar(&cfg.BucketNames, "s3.buckets", "", "Comma separated list of bucket names to evenly distribute chunks over. Overrides any buckets specified in s3.url flag")
f.Var(&cfg.S3, prefix+"s3.url", "S3 endpoint URL with escaped Key and Secret encoded. "+
54
+
"If only region is specified as a host, proper endpoint will be deduced. Use inmemory:///<bucket-name> to use a mock in-memory implementation.")
55
+
f.BoolVar(&cfg.S3ForcePathStyle, prefix+"s3.force-path-style", false, "Set this to `true` to force the request to use path-style addressing.")
56
+
f.StringVar(&cfg.BucketNames, prefix+"s3.buckets", "", "Comma separated list of bucket names to evenly distribute chunks over. Overrides any buckets specified in s3.url flag")
57
+
}
58
+
59
+
typeS3ObjectClientstruct {
37
60
bucketNames []string
38
61
S3 s3iface.S3API
39
62
}
40
63
41
64
// NewS3ObjectClient makes a new S3-backed ObjectClient.
0 commit comments