feat: stubs s3_upload, s3_download, s3_presign_url (issue 0014 fase 4)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package infra
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
// S3Upload sube data a un bucket S3-compatible bajo la key dada, con el
|
||||
// Content-Type indicado.
|
||||
//
|
||||
// STUB: la implementacion real requiere github.com/aws/aws-sdk-go-v2 (S3 client +
|
||||
// credentials provider). Ver el .md para el codigo completo a habilitar cuando se
|
||||
// añada la dependencia.
|
||||
func S3Upload(cfg S3Config, key string, data io.Reader, contentType string) error {
|
||||
_ = cfg
|
||||
_ = key
|
||||
_ = data
|
||||
_ = contentType
|
||||
return fmt.Errorf("s3_upload: not implemented (requiere github.com/aws/aws-sdk-go-v2)")
|
||||
}
|
||||
Reference in New Issue
Block a user