test: remove eval, go command generation overhaul

This commit is contained in:
Luke McCrone
2026-03-27 15:00:56 -03:00
parent 6c8eba12e3
commit ccd0ba2762
15 changed files with 736 additions and 559 deletions
@@ -4,14 +4,14 @@ import (
"errors"
)
func NewPutObjectCommand(s3Command *S3Command) (*S3Command, error) {
if s3Command.BucketName == "" {
func NewPutObjectCommand(s3Command *S3RequestBuilder) (*S3RequestBuilder, error) {
if s3Command.Config.BucketName == "" {
return nil, errors.New("PutObject must have bucket name")
}
if s3Command.ObjectKey == "" {
if s3Command.Config.ObjectKey == "" {
return nil, errors.New("PutObject must have object key")
}
s3Command.Method = "PUT"
s3Command.Query = ""
s3Command.Config.Method = "PUT"
s3Command.Config.Query = ""
return s3Command, nil
}