21 lines
554 B
Go
21 lines
554 B
Go
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)")
|
|
}
|