feat: update ali oss client

This commit is contained in:
yanghao05
2025-04-17 19:56:35 +08:00
parent 0d0887b4fb
commit 1ca75b6060
11 changed files with 133 additions and 295 deletions

View File

@@ -37,6 +37,18 @@ func Provide(opts ...opt.Option) error {
}, atom.GroupInitial); err != nil {
return err
}
if err := container.Container.Provide(func(
__job *job.Job,
) (contracts.Initial, error) {
obj := &DownloadFromAliOSSWorker{}
if err := river.AddWorkerSafely(__job.Workers, obj); err != nil {
return nil, err
}
return obj, nil
}, atom.GroupInitial); err != nil {
return err
}
if err := container.Container.Provide(func(
__job *job.Job,
) (contracts.Initial, error) {