MCPcopy
hub / github.com/cortexlabs/cortex / UploadStringToS3

Method UploadStringToS3

pkg/lib/aws/s3.go:427–429  ·  view source on GitHub ↗
(str string, bucket string, key string)

Source from the content-addressed store, hash-verified

425}
426
427func (c *Client) UploadStringToS3(str string, bucket string, key string) error {
428 return c.UploadReaderToS3(strings.NewReader(str), bucket, key)
429}
430
431func (c *Client) UploadJSONToS3(obj interface{}, bucket string, key string) error {
432 jsonBytes, err := json.Marshal(obj)

Callers 15

UploadBatchCountMethod · 0.80
uploadInProgressFileFunction · 0.80
SetEnqueuingStatusFunction · 0.80
SetFailedStatusFunction · 0.80
SetRunningStatusFunction · 0.80
SetStoppedStatusFunction · 0.80
SetSucceededStatusFunction · 0.80
SetWorkerErrorStatusFunction · 0.80
SetWorkerOOMStatusFunction · 0.80
SetEnqueueFailedStatusFunction · 0.80
SetUnexpectedErrorStatusFunction · 0.80

Calls 1

UploadReaderToS3Method · 0.95

Tested by 1