worker: add an option to upload public objects to aws.s3 target

If the object is marked as public, its direct download URL will be returned
instead of the presigned one.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-08-15 15:20:19 +02:00 committed by Sanne Raymaekers
parent 0e6c132ee6
commit 54e2c2304c
2 changed files with 13 additions and 3 deletions

View file

@ -42,6 +42,7 @@ type AWSS3TargetOptions struct {
Endpoint string `json:"endpoint"`
CABundle string `json:"ca_bundle"`
SkipSSLVerification bool `json:"skip_ssl_verification"`
Public bool `json:"public,omitempty"`
}
func (AWSS3TargetOptions) isTargetOptions() {}