feat: process attachments through durable versioned jobs

This commit is contained in:
Vladislav Agapov
2026-10-29 16:56:06 +03:00
parent 276dbdad8a
commit e35c8f0b75
235 changed files with 17028 additions and 44 deletions
+24
View File
@@ -0,0 +1,24 @@
package main
import (
"context"
"time"
"gitea.privcloud.tech/vlad_marlo/mtusi2026lab5/internal/config"
"gitea.privcloud.tech/vlad_marlo/mtusi2026lab5/internal/objectstore"
)
// bootstrapS3 creates the private bucket using separate operator credentials.
func bootstrapS3() error {
cfg, err := config.NewObjectStore()
if err != nil {
return err
}
objects, err := objectstore.New(cfg)
if err != nil {
return err
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
return objects.Bootstrap(ctx)
}