feat: two-store reconciler with safe repair and cost measurement (grade 5, track 2)

This commit is contained in:
2026-11-20 05:01:20 +03:00
parent 1c3011bf28
commit 60e8f4474b
36 changed files with 807 additions and 212 deletions
+8 -3
View File
@@ -37,11 +37,16 @@ func EndpointHost(endpoint string) (string, bool) {
}
func New(endpoint, region, accessKeyID, secretAccessKey, bucket string) (*Store, error) {
return NewWithTransport(endpoint, region, accessKeyID, secretAccessKey, bucket, nil)
}
func NewWithTransport(endpoint, region, accessKeyID, secretAccessKey, bucket string, transport http.RoundTripper) (*Store, error) {
host, secure := EndpointHost(endpoint)
client, err := minio.New(host, &minio.Options{
Creds: credentials.NewStaticV4(accessKeyID, secretAccessKey, ""),
Region: region,
Secure: secure,
Creds: credentials.NewStaticV4(accessKeyID, secretAccessKey, ""),
Region: region,
Secure: secure,
Transport: transport,
})
if err != nil {
return nil, err